Handle existing instance of root activity when launching root activity again from intent filter
- by Robert
Hi,
I'm having difficulties handling multiple instances of my root (main) activity for my application. My app in question has an intent filter in place to launch my application when opening an email attatchment from the "Email" app.
My problem is if I launch my application first through the the android applications screen and then launch my application via opening the Email attachment it creates two instances of my root activity.
steps:
Launch root activity A, press home
Open email attachment, intent filter triggers launches root activity A
Is it possible when opening the Email attachment that when the OS tries to launch my application it detects there is already an instance of it running and use that or remove/clear that instance?