I am building an application which will show a notification and on clicking the notification, I want to open a transparent dialog like activity which will have option related to that notification.
I defined a transparent activity and registered it in notification like this.
Intent notificationIntent = new Intent(context, EasyToDoReminder.class);
PendingIntent contentIntent = PendingIntent
.getActivity(context, 0, notificationIntent, 0);
The activity starts, but the main activity is statred behind it. How to open the Reminder activity independently?
And I am not trying to show a dialog. I want to show an activity look like a dialog. I am already using the theme as you mentioned. I have also one main activity. When I am trying to start my transparent dialog like activity, the main activity is getting started then over that the dialog like activity is started.
Anyone can please suggest to do this in a better approach?