Want to close the third party application which are only in foreground by its processID not th开发者_如何学编程e super apps. Is there is any API to do that.
There is a way you can kill your app by System.exit(0);
Thanks in advance.
You cannot do this. API's provide you with control to your application only not to other apps. You can invoke another application but you cannot control it, exit or request background and foreground to it.
精彩评论