मैं पैकेज ईवेंट के लिए प्रसारण ईवेंट प्राप्त करने के लिए ब्रॉडकास्ट रिसीवर पंजीकृत करने का प्रयास कर रहा हूं। मैनिफेस्ट फ़ाइल में कोड और मेरा रिसीवर निम्नलिखित है। लॉग स्टेटमेंट कभी नहीं होता है, लेकिन मैं "होमलोडर्स" (लॉन्चर) डीबग कथन के लिए एक ही प्रसारण फायरिंग को स्पष्ट रूप से देख सकता हूं। मैं क्या खो रहा हूँ?पैकेजेज इरादों के लिए प्रसारण प्राप्त नहीं कर सकते
public class IntentListener extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
Log.i("INTENT LISTNER:", intent.getAction());
}
}
<receiver android:name="IntentListener" android:enabled="true" android:exported="true">
<intent-filter>
<data android:scheme="package"></data>
<action android:name="android.intent.action.PACKAGE_ADDED"></action>
<action android:name="android.intent.action.PACKAGE_ADDED"></action>
<action android:name="android.intent.action.PACKAGE_CHANGED"></action>
</intent-filter>
</receiver>
त्रुटि com.android.samples.app.IntentListener की बजाय IntentListener में हो सकती है? – Zorb