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

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -