Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* AndroidManifest.xml
- <receiver android:name="com.sfn.android.LocalNotifier" >
- <intent-filter>
- <action android:name="com.transistorsoft.locationmanager.event.GEOFENCE" />
- </intent-filter>
- </receiver>
- */
- public class LocalNotifier extends BroadcastReceiver {
- private static final String TAG = "SFNLocalNotifier";
- @Override
- public void onReceive(Context context, Intent intent) {
- Log.d(TAG, "Got action: " + intent.getAction());
- final String GEOFENCE_EVENT = "com.transistorsoft.locationmanager.event.GEOFENCE";
- if (GEOFENCE_EVENT.equals(intent.getAction())) {
- showLocalNotification(context, intent);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment