android - ActivityManager No longer want my app -


i'm developping android application need run on android device 12 hours in row. device nothing except using app, in foreground. after variable delay app got killed os message:

i/activitymanager(  360): no longer want com.my.app (pid 1234): empty 10292s i/qtaguid (  360): failed write_ctrl(s 0 10066) res=-1 errno=1 w/networkmanagementsockettagger(  360): setkernelcountset(10066, 0) failed errno -1 i/windowstate(  360): win death: window{415f9718 u0 surfaceview} i/windowstate(  360): win death: window{415b8f08 u0 com.my.app/com.my.app.mainactivity} w/windowmanager(  360): force-removing child win window{415cc938 u0 surfaceview} container window{415b8f08 u0 com.my.app/com.my.app.mainactivity} 

my app displaying local html file videoview , use service keep real time connection server. think related service couldn't find clue that. there way stack of going on kind of errors ?

edit:

i tried run app without service , problem still happen not related service.

edit 2:

here code launching service.

activity

     private serviceconnection mconnection = new serviceconnection() {         public void onserviceconnected(componentname classname,ibinder binder) {              log.d("serviceconnection", "service connected");              socketclientbinder rmbinder = (socketclientbinder) binder;             socketservice = rmbinder.getservice();             isbound = true;          }          public void onservicedisconnected(componentname classname) {             isbound = false;         }     };      public void ondestroy() {             //we unbind our service avoid keeping connection             if (isbound) {                 unbindservice(mconnection);                 isbound = false;             }         super.ondestroy();     }      public void onstart() {             super.onstart();             if( ! isbound) {                 //we bind our activity our service                 intent intent = new intent(this, socketclientservice.class);                 bindservice(intent, mconnection, context.bind_auto_create | context.bind_waive_priority | context.bind_adjust_with_activity | context.bind_important);             }     } 

empty process

a process doesn't hold active application components. reason keep kind of process alive caching purposes, improve startup time next time component needs run in it. system kills these processes in order balance overall system resources between process caches , underlying kernel caches.

http://developer.android.com/guide/components/processes-and-threads.html


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -