I am making my first android application, and it requires switching between activities very frequently. I know I can call finish() to end the current Activity, but I was wondering if there was a way to not call finish() or startActivity(), but to somehow return to the old instance of that Activity? Not using the back button either.
If anyone has any ideas please let me know.
Thanks
can use
FLAG_ACTIVITY_CLEAR_TOPit will clear all the activity till previous reference of this OLD_ACTIVITY.use the flag
Intent.FLAG_ACTIVITY_CLEAR_TOPwith your intent. For more detail –there are more Flag like NO_History and more………..