问题
I've created an app, everything works fine.
However, when I close the app bij pressing back, and open the app again, it doesn't pass the splash-screen.
If I completely close the app through the Android running apps screen, it opens like normal again.
Anyone had this problem before?
Thanks in advance!
回答1:
Update your app to Ti SDK 6.0.0. This will fix the issue, I tested it by myself. Also see: app will freeze if re-launch from the task bar after closing it using Titanium.Android.currentActivity.finish();
回答2:
I solved it by adding this property in tiapp.xml in the root of the <ti:app>
tag:
<property name="ti.android.root.reappears.restart" type="bool">true</property>
and remove:
<property name="run-on-main-thread" type="bool">true</property>
来源:https://stackoverflow.com/questions/40807028/appcelerator-app-doesnt-restart-android