编辑getActivity().registerReceiver(new BroadcastReceiver(){...}, new IntentFilter(SENT));“方法registerReceiver(new BroadcastReceiver(){},IntentFilter)未定义为ComposerDialog类型” new Intent(SENT), 0
很明显,有一两件事不属于这里,比如registerReceiver,unregisterReceiver和RESULT_CANCELED。); filter = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED); filter = new IntentFilter(BluetoothAdapt
IntentFilter iFilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); at android.app.ReceiverRestrictedContext.registerReceiver(ContextImpl.java:138)
at android.app
虽然sendBroadcast to my mainActivity正在为RegisterReceiver工作,但在它内部却无法工作。putExtra(hello, "sending,Number of parts :" + Integer.toString(numParts) ); unregisterReceiver(receiver);s