On Tue, Jul 13, 2010 at 10:45 AM, Fefè <[email protected]> wrote:

> I have one service that is running in the background and make a
> simple scheduled (every 10 seconds) notification on the notification bar.
>

No, you don't. You have a class that extends Service and uses static
functions to call back to the main activity for unknown reasons.


>  I'm trying to call the stopservice method, but the result is always false
> and the service onDestroy() method is never called.
>

You never actually start a service, thus there is no service to stop.


> Any hint?
>

Use startService() (or whatever it's called) to actually, you know, start a
service that runs in the background, move the update logic to the service,
and get rid of all those pointless static functions.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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