I also want to be able to run commands like 'ls' and 'cat' On Dec 30, 5:09 pm, Jay <[email protected]> wrote: > Hello, > > Here's what I'm trying to accomplish: I want to be able to show dmesg > logs and logcat output in an app I'm writing. I know that I'm supposed > to use Runtime.getRuntime().exec(), however other than that, I'm > pretty lost. I tried to find some examples, but couldn't. > > Can someone here give me some information on how to do this? Maybe > point me to some example code. Aside from doing the following in my > code: > > Runtime.getRuntime().exec("dmesg"); > > or > > Runtime.getRuntime().exec("logcat"); > > I'm not sure what else to do to be able to read dmesg and logcat > outputs. > > Thanks,
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

