java - Android app cannot run in the background -


i click on "home" button run in background app.a few hours later open app again,but run oncreate() method.i tried used android:alwaysretaintaskstate attribute , saw didn't change anything. should do?

activities cannot run in background. there got services. espacialy @ startforeground, have it's limitations. there isn't other way.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -