May 6, 2008

(Android) How to call another Activity from a current activiry

String cmd_execute = "am start -n package name/package name.activity name";
try {
Process child = Runtime.getRuntime().exec(cmd_execute);
Log.i("info", "execute command");
} catch (IOException e) {
e.printStackTrace();
}

No comments: