Fantastic response, thanks!
I knew I was missing something... turns out it's not just *one* thing I was
missing, but a whole host of them.
As I said in the other post, this was the decision made by the client, but
would look to (and rather!) invoke a chooser for mail applications.
With regards
I think this may well do the trick!
Just when you think you've scoured the docs looking for the right answer,
someone else goes and finds it for you :-)
And the specific email app is what our client wants.
Mind you, a chooser would be a better approach and are used elsewhere.
Will see about con
This is wrong in a number of ways:
getLaunchIntentForPackage( "com.android.email" );
First, "com.android.email" is not an API. That is the internal identifier
for the current e-mail application that is part of AOSP; there is *no*
guarantee that such a thing will ever exist on the device.
Se
Does this help?
http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_REORDER_TO_FRONT
Also, why are you restricting the user to a specific email program
("com.android.email")? That doesn't follow good Android practices...
Thanks,
Justin Anderson
MagouyaWare Developer
I have an intent that starts the default Android mail client:
Intent emailIntent = this.getPackageManager().getLaunchIntentForPackage(
"com.android.email" );
this.startActivity( emailIntent );
Very simple stuff, and it fires off the Email client, from an "Import from
Email" button in my app.
M
5 matches
Mail list logo