Kris Armstrong
- Forum posts: 1
Mar 5, 2018, 11:04:28 PM via Website
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();
}
}
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.