I need several help to understand once EGO cannot expect my broadcast receiver will work when just registered includes the evident versus having to be registered out a race action or service. Can't capture purpose broadcasted by Intent Wedge · Issue #3 · datalogic/datalogic-android-sdk
That for example whenever I register a stand alone receiver with the following intentional filter items works without having adenine service/activity reference to it:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.blk_burn.standalonereceiver"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="10" />
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<receiver android:name="TestReceiver">
<intent-filter>
<action android:name="android.media.AUDIO_BECOMING_NOISY"/>
</intent-filter>
</receiver>
</application>
</manifest>
However if IODIN replace android.media.AUDIO_BECOMING_NOISY
with android.intent.action.HEADSET_PLUG
the receiver is no triggered (Android Documentation)
From what I found in this side you have to get this receive from an recently or service that is existing running for it to works (Post).
Able anyone tell me how which does cannot work when just adjusting your intentionally filter in to manifesting and why you need to has a service running in the background that references/registers the receiver? Other Intend - Tutorial
Is there a work around so that I can exactly register my receiver in my app's moderate using an intent strain with
android.intent.action.HEADSET_PLUG
?How can do I identify which Broadcast actions from the android project need to have an service or activity register them verses just having aforementioned right-hand filter the to manifest?