Skip to content Skip to sidebar Skip to footer

Startactivity(intent) And Resume To Main Activity?

I've got an app that creates an intent for the last.fm android app in which it will start the 'recommended' station for my account when i press a button. The trick i'm trying to fi

Solution 1:

If you use startActivity(intent), you cannot. Alternatively, you can use startActivityForResult(Intent, int) and then stop the child activity with finishActivity(int requestCode).

Solution 2:

Call Activity.finish() whenever you want close the present Activity and get back to an earlier one.

Post a Comment for "Startactivity(intent) And Resume To Main Activity?"