Re: [android-developers] Using startActivity( intent ) multiple times, fails.

2012-08-28 Thread Mark Jawdoszak
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

Re: [android-developers] Using startActivity( intent ) multiple times, fails.

2012-08-28 Thread Mark Jawdoszak
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

Re: [android-developers] Using startActivity( intent ) multiple times, fails.

2012-08-24 Thread Dianne Hackborn
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

Re: [android-developers] Using startActivity( intent ) multiple times, fails.

2012-08-24 Thread Justin Anderson
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

[android-developers] Using startActivity( intent ) multiple times, fails.

2012-08-23 Thread Mark Jawdoszak
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