How to terminate an application which is launched from my current application in android?
For eg:
Suppose I am starting YouTube from my own application then is there any way to terminate the YouTube application programatically from my app.
How to terminate an application which is launched from my current application in android?
For eg:
Suppose I am starting YouTube from my own application then is there any way to terminate the YouTube application programatically from my app.
You can simply use finish();
to finish that.
Not unless the device is rooted -- it doesn't matter if you sent the intent from your app to launch it, it's not your app but the OS that started the app, and you don't have any permissions to control other apps.