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
Post a Comment