Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

ALLOY: avoiding possible memory leaks when the app has a lot of separated Window elements

$
0
0
  • Application type: Alloy mobile for Android
  • Titanium SDK: 3.5.1.GA
  • Platform & version: Android
  • Device: real S3 Andr. 4.3 and Genymotion API 10
  • Host Operating System: Win x64
  • Titanium Studio: Titanium Studio, build: 3.4.1.201410281727

Could anyone make a bit of clarification about this once and for all? Online there is a lot of stuff that has caused to me only frustration. I'm talking about Alloy app: I've two View files:

index.xml

<Alloy>
    <Window id="winIndex" background="#672432">
        <Button onClick="openWin02">GO TO WIN02</Button>
    </Window>
</Alloy>
win02.xml
<Alloy>
    <Window id="win02" background="#561248">
        <Button onClick="openIndex">GO TO INDEX</Button>
    </Window>
</Alloy>
How can I open from winIndex Window the win02 Window and totally remove winIndex so that I can freeing memory? Thanks

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>