Loïc wrote:
> Hi,
> 
> I have created a MapActivity that acquires a target from user
> selection. This activity declares the following intent filter:
> 
> <intent-filter>
>               <action android:name="com.example.MY_ACTION" />
>                 <category
> android:name="android.intent.category.DEFAULT" />
> </intent-filter>
> 
> A second activity in an other application startActivityForResult :
> Intent intent = new Intent("com.example.MY_ACTION");
> startActivityForResult(intent, ACTIVITY_MAP);
> When startActivityForResult is invoked, "...
> ActivityNotFoundException: No Activity found to handle intent
> {action="com.example.MY_ACTION"}".
> 
> My MapActivity does not require input, but produces a latitude and a
> longitude. This activity "apparently" works fine when launched as
> main.
> 
> Any help would be appreciated !

Try either:

-- removing the <category> element from your manifest, or

-- adding the category to the Intent you are using with
startActivityForResult()

Your <category> element is saying "I want Intents that are for the
DEFAULT category". Your Intent does not match that. Change one or the
other, and I suspect it will work.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Need Android talent? Ask on HADO! http://wiki.andmob.org/hado

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to