I have two applications that I completely manage. Both sign with the same certificate, and both use the same intent filter. One sends the broadcast from the fragment, and the other sends it in and does something. However, this does not work:
Strings.FILTER_INIT_REGISTER = "com.app.FILTER_INIT_REGISTER" Intent intent = new Intent(Strings.FILTER_INIT_REGISTER); getActivity().sendBroadcast(intent);
I registered the receiver in the Manifest application tag for the application containing the ReportingReceiver class:
<receiver android:name=".receivers.ReportingReceiver" android:exported="true" > <intent-filter> <action android:name="com.app.FILTER_INIT_REGISTER" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </receiver>
Curious why the ReportingReceiver class does not receive an intent call?
source share