Android.content.ActivityNotFoundException:No Activity found to handle Intent
In Android development, the action and category are set using the implicit intent,manifest
As follows:
<ActivityAndroid:name= "Exerciseintent." Exintent2_1 "> <Intent-filter> <ActionAndroid:name= "1111111111111111111"/> <categoryAndroid:name= "Android.intent.category.MY_CATEGORY"/> </Intent-filter> </Activity>
Force close appears every time a jump is made.
Log for 06-06 22:23:27.990:e/androidruntime (2652): Android.content.ActivityNotFoundException:No Activity found to handle Intent {act=1111111111111111111 cat=[android.intent.category.my_category] (has extras)}
After searching, we get a clue that implicit intent contains at least "Android.intent.category.DEFAULT" (corresponding to the Category_default constant). Therefore, an activity that wants to receive implicit intent must include "Android.intent.category.DEFAULT" in the intent filter.
After modification:
<ActivityAndroid:name= "Exerciseintent." Exintent2_1 "> <Intent-filter> <ActionAndroid:name= "1111111111111111111"/> <categoryAndroid:name= "Android.intent.category.DEFAULT"/> <categoryAndroid:name= "Android.intent.category.MY_CATEGORY"/> </Intent-filter> </Activity>
After testing, OK.
Recorded.
Android Development Bug-no Activity found to handle Intent