开发者

How to disable android application automatic restart after a crash (Android 2.2)

Is there a way to disable android application automatic restart after a crash (Android 2.2)? Application crashes and after it android restarts application. It seems that android tries to restore activity back stack and it causes issues because all data which was received from the server on login is gone.

UPDATE: my application starts with login screen on which it loads some data from server开发者_运维百科 and in case of restart after crash no login is done

I see that there is simmilar question but without solution


  • It has a simple solution after crashing if your activity is restarting then check at start point that this activity has all required data of login or not if it has not all the data then redirect it to login activity.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜