Within Android, how do I start an activity or bring to front that activity if already on stack?
So far I know start a new activity myActivity, as by the code below shows. But I don't want to open a second copy of the same class, if it's already open on the stack. So how do I check whether activities like the below exist on the stack, then if it exists bring it to front. If it doesn't, open a new activity like below
Intent intent = new Intent(myActivity.this,
myActivity.class);
startActivity(intent);