[android-developers] Re: Detecting if an Activity is being displayed or not

2009-01-04 Thread Mark Murphy
Jay-andro wrote: > Actually, Mark, my users love this feature. I don't know which application this is, and since I only have a small percentage of available Android apps installed, I'm presumably not a user. It could be that the way your service works, the only time you'd launch your activity fr

[android-developers] Re: Detecting if an Activity is being displayed or not

2009-01-04 Thread Jay-andro
Actually, Mark, my users love this feature. I raise a notification as well, which is automatically cleared when certain "dismissive" actions are taken by the user. I think giving the user the option to turn off showing the activity (and limiting it to the notification only) is something I might do

[android-developers] Re: Detecting if an Activity is being displayed or not

2008-12-26 Thread Mark Murphy
Jay-andro wrote: > I have a service that runs in the background periodically and checks a > database for some data. If it finds whats it's looking for, it shows > an Activity to the user to alert him/her of this condition. Please please please please please don't do that. Raise a Notification in

[android-developers] Re: Detecting if an Activity is being displayed or not

2008-12-25 Thread Ravi Yenduri
This is probably a better place to start: http://code.google.com/android/reference/android/R.styleable.html#AndroidManifestActivity_launchMode -Ravi On Dec 26, 6:17 am, Ravi Yenduri wrote: > OnNewIntent() is probablythe method you are looking for. > > http://code.google.com/android/reference/a

[android-developers] Re: Detecting if an Activity is being displayed or not

2008-12-25 Thread Ravi Yenduri
OnNewIntent() is probablythe method you are looking for. http://code.google.com/android/reference/android/app/Activity.html#onNewIntent(android.content.Intent) -Ravi On Dec 26, 2:42 am, Jay-andro wrote: > I have a service that runs in the background periodically and checks a > database for som