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 figure out is how do i get the phone back to my app without the user having to navigate back manually? Once it start the last.fm intent it takes you to the playlist and i need it to resume back to my app automatically.
Asked
Active
Viewed 4,596 times
2 Answers
1
Call Activity.finish() whenever you want close the present Activity and get back to an earlier one.

Primal Pappachan
- 25,857
- 22
- 67
- 84
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).

Sai Prasad
- 695
- 1
- 6
- 14