howto Launch a binary app from APK

  • Replies:0
Kris Armstrong
  • Forum posts: 1

Mar 5, 2018, 11:04:28 PM via Website

Hi,

I have read multiple forums on this and I know it shouldn't be hard but I'm missing something here. I am attempting to launch a binary on my Android APP. I have stripped it down at this point just to try and run ls and that does not even seem to be working. there is no output in logcat.

I am developing for Android 6 and later

Current Code:

    public void onButtonClick(View v) {

    try {
        Process p = new ProcessBuilder("ls", "-lrt", ">>log").start();
    } catch (Exception e) {
        e.printStackTrace();
    }
}
Be the first to answer