>
> Absolutely - happy to explain.
>

My service can be started at phone bootup - works wonderfully.

Now when the user starts my app (Activity) - in the onCreate method
i want to see if the service is running - if not running - i want to run it.

I've taken your advice and in the Activity.onstart/onstop - i bind to the 
service.
(works fine)


The problem is that in the activity.onCreate() method when i call 
startActivitry() -

it calls the services onCreate() and onStartCommand().

I'm thinking that it deletes the running service (even though the 
onDestroy() does not seem
too called - and then creates a new service object - explained by the above 
2 calls.


Basically, in the Activity.onCreate() - I'd like to launch the service if 
it's not running.


 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to