如何从(添加)proximityalert 中获取意图到广播接收器中?以及如何使 onreceive 方法起作用?
Intent locationNotific = new Intent("SendProximityIntent");
locationNotific.putExtra("RowID", id);
sendBroadcast(locationNotific);
PendingIntent lPendingIntent = PendingIntent.getActivity(this, 0, locationNotific, 0);
IntentFilter filter = new IntentFilter("SendProximityIntent");
registerReceiver(new ProximityIntentReceiver(), filter);
lm.addProximityAlert((double) locationAlertGeoP.getLatitudeE6(),(double) locationAlertGeoP.getLongitudeE6(), (float) 999999999,(long) 100000,lPendingIntent);