Please read the docs on intent resolution: http://code.google.com/android/reference/android/content/Intent.html
In this case, your intent-filter is not following the protocol as defined for the EDIT intent: http://code.google.com/android/reference/android/content/Intent.html#ACTION_EDIT (You need to make an Intent whose data is the item to be edited, and your intent-filter thus must specify the MIME type it can edit.) Also for any activity to match an implicit intent given to startActivity(), they must support the DEFAULT category. Finally, do you really want to use an implicit intent? Why not just explicitly launch the class? Unless you are wanting to follow a protocol to interoperate with others, and thus think about the intent-filter being made and what it means and how it is matched, there is no need to do that. On Tue, Nov 25, 2008 at 10:38 PM, sylvek <[EMAIL PROTECTED]> wrote: > > Hi, > > I want to launch a new Activity from my current Activity.. so i do: > > <activity android:name=".Device" android:label="@string/device_name"> > <intent-filter> > <action android:name="android.intent.action.EDIT" /> > </intent-filter> > </activity> > > and in my code .. > > Intent intent = new Intent(Intent.ACTION_EDIT); > intent.putExtra(Device.DEVICE, getItem(position).toString()); > ((Activity) getContext()).startActivityForResult(intent, > Device.FROM_LIST); > > And i receive and ActivityNotFoundException :( > > I try it to create an Intent with the Device.class like that : > Intent intent = new Intent(getContext(), Device.class); > > And it's working... why? :( > > > > -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

