Is this possible in an Android app? I want to make it so that no matter how many times a user starts activityA, when they hit the back button they will never get more than o
One option is to use Intent.FLAG_ACTIVITY_REORDER_TO_FRONT
every time you launch an Activity so that if an instance exists it is brought to the front of the stack and not created every time.
This way you are ensured that only one Activity will remain on stack.
You might want to set your activity as singleTop
-- this basically means that you can have multiple instances, but the app will reuse an instance if you try to launch an instance on top of itself. See the Android documentation on Activities and Tasks.