我想注册一个在Android manifest.xml中有许多操作的接收器。在manifest.xml中注册一个包含许多操作的接收器
IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED);
intentFilter.addAction(Intent.ACTION_PACKAGE_INSTALL);
intentFilter.addDataScheme("package");
registerReceiver(installReceiver,intentFilter);
我无法弄清楚。怎么做?
好,谢谢,但如何添加intentFilter.addDataScheme( “包”);? – 2012-07-20 07:24:04
在intent-filter标记中添加 – 2012-07-20 07:43:12