android - What makes a service to start "parental" activity when service starts -


in app have service should stay in memory permanently. service starts activity in common way.

if ( servicerunning == false) {    log.i(tag,"starting service");    startservice(new intent(this.getapplicationcontext(), actionservice.class)); } 

after service started creates second instance of activity in stack, i.e. if press button i'll see same screen again. , every 30 minutes service creates new instance of activity , brings front. looks service killed os , restarted.

so, makes start\restart of service create activity instance?


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -