I have an application that creates the intent for the last.fm Android application in which it will launch the “recommended” station for my account when I press the button. The trick I'm trying to understand is how to get the phone back to my application if the user does not have to go back manually? Once it launches the last.fm intent, it will move you to the playlist, and I need it to automatically return to my application.
If you use startActivity (intent), you cannot. Alternatively, you can use startActivityForResult (Intent, int) and then stop the child activity with finishActivity (int requestCode).
Call Activity.finish () when you want to close the current activity and return to the previous one.
Source: https://habr.com/ru/post/920335/More articles:Sharing resources between non-JAR maven projects - mavenandroid: how to run a shell command from code - androidHow to define paths in another path using JavaCV? - image-processingpygettext.py and msgfmt.py on Mac OS X - pythonHow to close or stop an external application that I started in Android - androidIIS Express or Cassini - visual-studio-2010Is there a good site for sharing and optimizing code? - androidHow to use ui themes for jQuery datatables? - jqueryWeb Application E-Client Behavior - e-commerceTwitter Bootstrap Modal - Hidden - jqueryAll Articles