摘要:
发送定位广播:Intent intent = new Intent();intent.putExtra("GpsIsAvailable", GPS_IS_AVAILABLE);intent.setAction("cn.com.miya.action.service");sendBroadcast(intent)注册广播接收者:private GpsStatusReceiver receiver = new GpsStatusReceiver();IntentFilter filter = new IntentFilter("cn.com.miy 阅读全文