On Thu, Sep 1, 2011 at 10:21 PM, Robert Thau <rst...@gmail.com> wrote:
> ... once a proximity alert is first set, the GPS icon in the > status bar seems to stay on continually, blinking if it hasn't got a > fix. Which is what you expect when the proximity alerts are active, > but I still see the icon in the status bar even after the proximity > alerts are removed (so far as I can tell), and even after > uninstalling the app (which, I think, should certainly clear them > --- though if there's a way to get the LocationManager to list active > proximity alerts, that would be useful to know). > For the sake of people Googling around for solutions to a similar issue, switching the FLAG_CANCEL_CURRENT in the following to read FLAG_UPDATE_CURRENT appears to solve the problem. (This is the method that builds the PendingIntents which I feed to addProximityAlert and removeProximityAlert.) > def buildPendingIntent( list: ShoppingList, shop: Shop ) = { > val intent = new Intent( ctx, classOf[ ProxAlertManagement ] ) > intent.putExtra( shopIdKey, shop.id ) > intent.putExtra( listIdKey, shop.shoppingListId ) > PendingIntent.getBroadcast( ctx, 0, intent, > PendingIntent.FLAG_CANCEL_CURRENT ) > } > > Robert Thau -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en