Am Monday 20 April 2009 schrieb Mark Murphy:
> > But this gives me a null pointer on last line...
> >
> >
> > What could I do?
>
> If the service is a local service (in the same application as the
> activity), then do not use an Intent. Have the activity register a
> callback or listener object with the service, and have the service call
> that object as needed to inform the activity of progress.
>
> Regardless of whether the service is local or remote (i.e., using AIDL),
> the decision to display things should be made by the activity, not the
> service. The service should always say "I am done"; the activity can
> decide what to do or not to do with this information.

Ok thanks for your answer. But can the activity handle that even when its not 
running? In which method will it handle the answer of the service, or how do I 
get the answer?



Greets
Cyrill


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