Because GMail does not enable that component until there is 1+ accounts defined. Use PackageManager and queryIntentActivities() to see if your Intent will resolve to anything.
On Fri, Nov 12, 2010 at 9:51 AM, Yong Ma <[email protected]> wrote: > The test code is below: > Intent intent = new > Intent(Intent.ACTION_VIEW,Uri.parse("mailto:[email protected]")); > startAcitvity(intent); > If I doesn't config the Gmail account in my device, the test code will get > an ActivityNotFoundException; and > If I config an Gmail account in my device, the test code will start the > Email Activity. So why the test code get > an ActivityNotFoundException? > > -- > 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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

