[android-developers] Get current activity from Service

2009-05-14 Thread M.Manjunatha
Hi all, I have written a service, which observes couple of databases. Now that I don't want to handle this when a particular activity is running. Its my own activity. How do i do that??? Regards, Manjunatha --~--~-~--~~~---~--~~ You received this message because y

[android-developers] Get current activity from Service

2009-04-08 Thread a...@lg
Is it possible to get the currently running activity through Service..?? i.e. I have a service started by an Activity A, and now I want to stop the service by another activty say Activity B. Since Activity B doesnt know about the service, i want to capture the events in OnKeyDown() of the Activi