I am running a service to call a transparent activity (called ReminderPopup) as a popup reminder which is working well. However if the original activity (called App) is paused when the transparent activity (ReminderPopup) is called then both show up with the transparent activity on top. How do I prevent the paused activity from showing up?
I think it has something to do with ActivityFlags, they are shown as a stack. I am not 100% sure though.
Do you use StartActivity to start the transparent activity?
I can't possibly know why this is happening, especially when not shown any code, but I can suggest (again, without seeing anything) that you check for a flag inside your activity's resume sub and finish it (the unwanted one obviously) when it shows up while you only need the transparent one. BUT, this is a fix I wouldn't do, since I suspect there perhaps exists a call at this activity. If this is the case, you should remove it.
I thought about that Erel but that is not ideal. I have nothing under my activity_resume sub and it still brings up the paused app...how to messaging programs achieve a popup like this without pulling up the paused activity? Are they using a separate apk?
It is possible to create an intent with different tasks to change the behavior of the activity stack. However in most cases it is simpler to just finish the previous activity.