Wednesday, November 12, 2014

command line - Is there a way to launch app via terminal in the background?


Is there a command to launch an app via terminal and have it start in the background?


Something like the "&" in Linux...




Answer



Android is a Linux too, so a simple example :


am start -a android.intent.action.MAIN -n com.android.settings/.TetherSettings &

No comments:

Post a Comment