Java tutorial
//package com.java2s; import android.util.Log; public class Main { public static String generateCommand(String pkgName, String clsName) { String command = "am instrument --user 0 -w -r -e debug false -e class " + pkgName + "." + clsName + " " + pkgName + ".test/android.support.test.runner.AndroidJUnitRunner"; Log.e("Test Start", command); return command; } }