Skip to content

Error in BootReceiver.onReceive - should be getBroadcast not getActivity #12

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions