how to show custom activity in my application when I click notification?
My app contains two activities (a1
). a1 is MAIN
activity and it shows when application starts. When application start it creates a service, this service creates notification. When I click notification after exit my app I want to be redirected to activity a2
I use for that this code:
Using java Syntax Highlighting
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, new Intent(this, a2.class), 0);
Parsed in 0.031 seconds, using GeSHi
It works almost perfect, besides that a2
is Translucent activity and in the background of this a2
activity I see a1 activity. How to display only a2
activity (something similar to popup window)?