android - App closing unexpectedly after a long period of time -
the app have produced basic operations, including downloading files server , displaying them in webview.
the app footprint pretty small , runs nicely, while.
ideally app needs run 24/7 after few test runs, app being killed.
in instances, webview activity killed, , app display login screen (the main activity)
i have watched heap info in eclipse , looks stable, gc kicking in , usage % staying 85%.
i have runnable set refresh webview activity every 15 minutes, replaced background service. current timer not seem affect apps performance, app running smoothly couple of hours (the time watched run, left alone on night, have quit time got in morning)
if there way find out android doing app, why either closes or quits main activity?
(also, need way "adb logcat" on wifi, what's quickest way achieve this?)
you can't stop app getting killed os. android designed in such way manage apps not being actively used.
in case, if planning in background, background service ideal place achieve that. can never ensure app remains active time.
Comments
Post a Comment