On Fri, Aug 20, 2010 at 6:19 PM, Laxs <[email protected]> wrote:
> I was trying to open an Activity of an other applicatoin by using an
> implicit Intent. It doesn't work, I thought it is possible to start an
> Activity of an other Application by using implicit Intent. Or do I
> missunderstand it?
>
> I added following intent-filter to the AndroidManifest of Application
> A:
>
> <activity android:name=".NoteEdit" >
> <intent-filter>
> <action
> android:name="com.android.demo.notepad3.intent.action.EDIT_NOTE" />
> <category
> android:name="android.intent.category.DEFAULT" />
> </intent-filter>
> </activity>
You have a <category> element here.
> and called the Intent in Application B by using folloing code:
>
> String id= "1";
> Intent noteIntent = new
> Intent("com.android.demo.notepad3.intent.action.EDIT_NOTE");
> noteIntent.putExtra("_id", id);
> startActivity(noteIntent);
You do not have a noteIntent.setCategory() call here. Those need to
line up. Either have a category and use it, or do not have a category
and do not use it.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
_The Busy Coder's Guide to Android Development_ Version 3.1 Available!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en