java - Android Killing PhoneGap application -


i'm quite new android world , have been developing android application phonegap (jquery) communicates background service (java) reports gps location every 10 secs. memory consumption around 30mb, not much, have perceived android, reason, kills application after while, because needs more memory.

so, there way of avoiding that? if not, how can detect when application being killed?

if app getting killed os due normal usage memory pressure, there no way avoid os designed backgrounded apps.

you have find way recover gracefully webapp starting if newly launched.

as alternative can convert app native app. while same thing happening native app, happening quicker of ui elements native ui elements (buttons, text fields, etc.) while in webapp injecting html , javascript webview , depending on webkit engine render everything. should go native route, documentation , tutorials available @ android developer site available.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -