Re: [android-developers] How to start an Activity from a Service and getting a result from it

2010-02-12 Thread Kevin Duffey
The whole purpose of a service is to stay in the background doing something, so not sure why you would want to display a UI in a non-UI based app. As Dianne said, post a notification that shows up on the status bar... when the user slides it down and clicks on it, that can launch an activity...

[android-developers] How to start an Activity from a Service and getting a result from it

2010-02-11 Thread Menny
Hi, I have a Service which needs to receive data from external packages. So, to locate the data providing external packages, I use activity- filter and PackageManager.queryIntentActivities function to locate the interesting packages. Now, from each such package, I need to get a ContentProvider

Re: [android-developers] How to start an Activity from a Service and getting a result from it

2010-02-11 Thread Dianne Hackborn
You can't do this, nor should you. This would pop your UI in front of the user, disrupting whatever they are doing. This is highly discouraged. The proper way to do this is to post a notification, which the user can respond to when desired and can cause your own activity to be launched, which