Hi All,
I tried this
Intent mailClient = new Intent(Intent.ACTION_VIEW);
mailClient.setClassName("com.google.android.gm",
"com.google.android.gm.ConversationListActivity");
startActivity(mailClient);
it is working for gmail accounts.
Problems :
1. its is open only last viewed gmail account.
suppose i have 2 gmail accounts [email protected] and [email protected].
if i was viewed [email protected] lastly then this intent will open
[email protected] inbox but i need to view the 1st one. How do i switch
between accounts.
2. We are accessing the class name straight away through intent, so if any
updated from gmail app that may cause problem(if they change the activity
name or package)
3. Its is only working for gmail how do i open yahoo or other email clients
inbox?
Please help me.
Thanks
Manikandan
On Thu, Oct 20, 2011 at 1:52 PM, Manikandan M <[email protected]>wrote:
> Hi all,
>
> how to open inbox of (gmail,yahoo,rediff,etc .., ) on button click
> from some other application. if the mail address i have is gmail then
> i want to launch the gmail inbox of the account that is registered in
> the device.
>
>
> Example : [email protected] is the mail address i have.
>
> Email Address registered in android : [email protected] ,
> [email protected] , [email protected] , [email protected].
>
> now onclick of some event i want to launch the gmail inbox of
> [email protected] account.
>
> Is there any inbuilt intent is available?
>
> Please help me.
>
> Thanks in Advance
> Manikandan.
>
> --
> 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
--
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