[android-developers] Re: "send" intent only when activity is on top running

2009-04-20 Thread Mark Murphy
> But can the activity handle that even when its > not > running? That depends on the definition of "handle that" and "its not running", along with whether or not your service is local or remote. > In which method will it handle the answer of the service, or how > do I > get the answer? If you

[android-developers] Re: "send" intent only when activity is on top running

2009-04-20 Thread Cyrill Helg
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 wi

[android-developers] Re: "send" intent only when activity is on top running

2009-04-20 Thread Mark Murphy
> I have an activity that uses a service. While the service is running (it > sends > some stuff in background) I display a progress bar and disable the send > button. > > Now I created an Intent to update the interface after the send service has > finished. How can I do this only if the activity i