| | |
| | |
|
| | | private void registerBroadCast() {
|
| | | IntentFilter mIntentFilter = createBroadCast();
|
| | | mIntentFilter.addAction("xxxx");
|
| | | if (mIntentFilter != null && mIntentFilter.countActions() > 0) {
|
| | | broadcastReceiver = new BaseBroadcast();
|
| | | registerReceiver(broadcastReceiver, mIntentFilter);
|
| | |
| | | }
|
| | |
|
| | | protected IntentFilter createBroadCast() {
|
| | | return null;
|
| | | return new IntentFilter("hdlUserDeviceBind");
|
| | | }
|
| | |
|
| | | protected void onReceive(Context context, Intent intent) {
|
| | |
|
| | | if(intent!= null){
|
| | | String action = intent.getAction();
|
| | | if(action.equals("hdlUserDeviceBind")){
|
| | | String ddd = intent.getStringExtra("data");
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | @Override
|