You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PendingIntent locationListenerPassivePendingIntent =
PendingIntent.getActivity(context, 0, passiveIntent,
PendingIntent.FLAG_UPDATE_CURRENT);
should instead read
PendingIntent locationListenerPassivePendingIntent =
PendingIntent.getBroadcast(context, 0, passiveIntent,
PendingIntent.FLAG_UPDATE_CURRENT);
as you will discover if you copy this part of the code - the
PassiveLocationChangedReceiver's onReceive is never called :-)
Original issue reported on code.google.com by ken...@kentonprice.com on 16 Apr 2012 at 4:20
The text was updated successfully, but these errors were encountered:
You can see the correct code used in PlaceActivity.onCreate:
locationListenerPassivePendingIntent = PendingIntent.getBroadcast(this, 0,
passiveIntent, PendingIntent.FLAG_UPDATE_CURRENT);
Presumably this is the usual happy-case code path. I just had bad luck by
harvesting the code from the BootReceiver, which presumably wasn't tested as
thoroughly ;)
Original comment by ken...@kentonprice.com on 16 Apr 2012 at 4:25
Original issue reported on code.google.com by
ken...@kentonprice.com
on 16 Apr 2012 at 4:20The text was updated successfully, but these errors were encountered: