I am programming a chat program for android.
I have the contact list as one activity and the chat windows as a second activity. I use startActivity to switch to the
Add FLAG_ACTIVITY_REORDER_TO_FRONT to your Intent. That will bring the existing activity instance to the foreground if it exists or create a new one if it does not exist.
FLAG_ACTIVITY_REORDER_TO_FRONT
Intent