问题
I am making a application in phone gap cord-ova 2.7.0 Android OS specific with camera feature and social sharing feature. In my application when I choose image selection feature. Then it moves me to gallery folder and when I come back after selecting picture by pressing back button, my application stops. I am totally confused.
Things I already tried:
There is no mistake in camera event feature because if I select a picture fast and come back to application. Then it does not stops but if i waste 5 sec to select a picture my application state get lost.
I have tried pause and resume event but its not helping in that problem.
I have checked all values .no null value found!
Important things to notice:
Same issue happens with social feature if I go on Twitter to share my message and come back to the application stops.
回答1:
In your device Go to settings --> Developer options -->In apps tab check "Don't keep activities". If it is checked uncheck it and try.
来源:https://stackoverflow.com/questions/20559890/phone-gap-application-close-if-i-move-to-other-folder