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? :(

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to