-
private MyBroadCastReceiver myBroadCastReceiver;
-
@Override
-
protected void onCreate(Bundle savedInstanceState) {
-
// TODO Auto-generated method stub
-
super.onCreate(savedInstanceState);
-
myBroadCastReceiver = new MyBroadCastReceiver();
-
}
-
@Override
-
protected void onResume() {
-
// TODO Auto-g
enerated method stub -
super.onResume();
-
IntentFilter intentFilter = new IntentFilter();
-
intentFilter.addAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
-
System.out.println(“I’m coming, myBroadCastReceiver注册了!”);
-
registerReceiver(myBroadCastReceiver, intentFilter);
-
}
-
private class MyBroadCa
Android中屏蔽 电源键长按、Home键、Home长按,android音频面试题
最新推荐文章于 2024-07-05 14:19:23 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)