Ok.

Your code calls startService and stopService with different Intent objects:
toggleIntent vs. toggleMapIntent.

Does the "stop" intent actually point to the service you want to stop?

If not, you are stopping someone else's service.

-- Kostya

2011/6/20 Boozel <[email protected]>

> No, i need the service to run independently from the activity
>
> --
> 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 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

Reply via email to