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

Android ActivityWindow vs Window

$
0
0

I have a dilema on porting an app from iphone to android (all written in Titanium by the way )

I use to make open another window upon closing another by adding a property to the window that was closing... (as I only have to open another only on some cases...)

The problem is the source that's calling the close event is not the window as in iphone.. it's another object of type ActivityWindow (just sometime though .. didn't figured it out when.. or what..)

so my code is this:

Window.addEventListener('close', function(e) {          
    if (e.source.open_another==true )  {  
        //do something
    }
 }
 
///***************///
 
so in the window
Window.close({animated});
So the e.source isn't always the Window object but ActivityWindow

So how can I get to the calling window from ActivityWindow


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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