Phone gap application close if i move to other folder

▼魔方 西西 提交于 2020-01-17 03:41:05

问题


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:

  1. 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.

  2. I have tried pause and resume event but its not helping in that problem.

  3. 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

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