What is the use of the category "android.intent.category.DEFAULT" with respect to broadcast receiver?
<receiver
android:name=".receivers.InputReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="com.amazon.intent.action.CUSTOM_A" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
Android documentation says that to match any implicit intents add the category default.
Note: In order to receive implicit intents, you must include the CATEGORY_DEFAULT category in the intent filter. The methods startActivity() and startActivityForResult() treat all intents as if they declared the CATEGORY_DEFAULT category. If you do not declare it in your intent filter, no implicit intents will resolve to your activity.
After Android-O, I will not be able to send implicit broadcasts. Does that mean "CATEGORY_DEFAULT" will not be useful with broadcasts?
I'm quite confused with the use of CATEGORY_DEFAULT with broadcast and activity. Can someone clarify me please? What is the right scenario to use CATEGORY_DEFAULT and what would happen if I didn't add it?