Appcelerator app doesn't restart (Android)

耗尽温柔 提交于 2019-12-20 04:08:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!