[android-developers] Re: How to determine if Activity is on screen

2010-03-04 Thread julius
Furthermore, a BroadcastReceiver has no good way of communicating to a running activity, let alone determining if there is one there. Yeah I was kinda having trouble with this part... :) Now, if you take the BroadcastReceiver out of the equation, your dialog-raising Activity could register

[android-developers] Re: How to determine if Activity is on screen

2010-03-04 Thread julius
I was using a BroadcastReceiver as the Service has ProximityAlerts set up , each of which expects a PendingIntent. I had each PendingIntent send a broadcast. I guess I'll need to use PendingIntent.getService() to start the process of notification or call method on the listener. Actually I'll

Re: [android-developers] Re: How to determine if Activity is on screen

2010-03-04 Thread Mark Murphy
julius wrote: Furthermore, a BroadcastReceiver has no good way of communicating to a running activity, let alone determining if there is one there. Yeah I was kinda having trouble with this part... :) Now, if you take the BroadcastReceiver out of the equation, your dialog-raising Activity