Morever, I don't think you are really trying to view an Email. The action of
the intent should be SEND type. There is no component that recognizes the
View intent with email Uri.

On Wed, Nov 17, 2010 at 7:03 AM, Mark Murphy <[email protected]>wrote:

> 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]<android-developers%[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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com

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