1
votes

I am making an app for Android. I encountered strange issue. Application works perfectly until it is closed with back button. If so, than after restart it is showing splash screen and becoming non-responsive. After some time dialog (if I want to close the app) may show. It happens with any code. For example:

var myApp = {};
alert(1);
alert(2);

If app is closed in hard way (third button and swiping app out) than everything is fine.

Problem occurs on every Android version both on device and simulator. After some test I found it occurs on SDK 5.2.0 and newer.

Did anyone encounter such problem?

1
please add some information about your setup: Titanum SDK version, Android version, does it happen on a device or simulatormiga
@miga: Sorry my mistake - I did not add such details because it was common problem on every configuration I'd tested. I wast testing it today and found that problem doesn't occur on 5.1.1GA and 5.1.2GA. It occurs on everything newer 5.2.0-5.5.1GA. Thank you for your comment.kreatywny
I thought it was something with my LiveView but I'm encountering the same issue. SDK5.4.0.Skoempie
@GerbenHofman: I have such situation no matter if I use LiveView or not.kreatywny

1 Answers

0
votes

I solved the problem as I described in another answer Appcelerator app doesn't restart (Android)

Add this property in tiapp.xml:

<property name="ti.android.root.reappears.restart" type="bool">true</property>

in the root of the <ti:app> tag