开发者

Android icon sometimes open new app sometimes brings up old app, help!

开发者 https://www.devze.com 2022-12-16 06:39 出处:网络
I have an android app which i have written, which exhibits some strange behaviour. When i have an app open, say with three acitivties in the stack

I have an android app which i have written, which exhibits some strange behaviour.

When i have an app open, say with three acitivties in the stack

A - B - C

where a is the entry point and C is the currently viewed activity, if i press the home button and reselect the icon for my app sometimes i see A, which on pressing the back button i can see the task now contains the activities

A - B - C - A

and sometime it just reopens the app in the last state

A - B - C

which is what i want to happen. Could anyone inform me of why the inconsitant behaviour is happening. On both cases i press the icon strait after exiting the app via the home key.

Thanks for any help!

ps i have also asked this question on andde开发者_如何学编程v here


It sometime happens if you are running your app through a shortcut on your desktop. Delete shortcut and re install and you should be fine.

0

精彩评论

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