[android-developers] Re: Running adb logcat and dmesg commands from within my app.

2011-01-07 Thread Jay
I see, I'll take another look. Thanks, On Jan 6, 5:14 pm, Roger Podacter rogerpodac...@gmail.com wrote: what doesnt make sense?  i'll use the two commands we used as example, cat and echo.  we had to use those two.  the shellcommand works for both root access, and non-root if that's what you

[android-developers] Re: Running adb logcat and dmesg commands from within my app.

2011-01-07 Thread Roger Podacter
Sorry for not explaining it quite clearly the first time. So those 2 little code snippets I just posted above, those are from the ds2784battery class we used in my app, near the end of the file. Those are actually using the shellcommand class we imported. And when those code snippets give you the

[android-developers] Re: Running adb logcat and dmesg commands from within my app.

2011-01-07 Thread Jay
SUCCESS! I'm not going to copy the shellcommand.java file, but digging through it more and experimenting, I got something that works which I can now expand on. Thanks a lot. On Jan 7, 12:48 pm, Roger Podacter rogerpodac...@gmail.com wrote: Sorry for not explaining it quite clearly the first

[android-developers] Re: Running adb logcat and dmesg commands from within my app.

2011-01-06 Thread Jay
The terminal emulator code doesn't make since to me. Looks like there's some native code stuff going on in there. As for the battery calibration app, who exactly wrote the ShellCommand.java file, and is there any documentation to go with it? It sort of makes sense, but I can't piece it together.

[android-developers] Re: Running adb logcat and dmesg commands from within my app.

2011-01-06 Thread Roger Podacter
what doesnt make sense? i'll use the two commands we used as example, cat and echo. we had to use those two. the shellcommand works for both root access, and non-root if that's what you want. from the code all we did is: ShellCommand shell_command = new ShellCommand();

[android-developers] Re: Running adb logcat and dmesg commands from within my app.

2011-01-04 Thread Roger Podacter
I actually just used this in my app. I had to make terminal commands etc. Some awesome, Epson made something for us to use called shellcommand (just Google it). You can see it used in our source code if you want. It works great. https://github.com/R0gerP0dacter/BatteryCalibrator Just dig down

[android-developers] Re: Running adb logcat and dmesg commands from within my app.

2011-01-04 Thread Roger Podacter
i just replied to this thread but i guess i'm new so the post didnt go thru? i just used cat and echo commands in my app we just finished recently. the person above who mentioned getting the InputStream is correct. i cant paste in the entire code example, but if you search the web for

[android-developers] Re: Running adb logcat and dmesg commands from within my app.

2011-01-04 Thread Jay
This is exactly the kind of stuff I was looking for. I'll dig in, thanks. On Jan 3, 11:25 am, Roger Podacter rogerpodac...@gmail.com wrote: i just replied to this thread but i guess i'm new so the post didnt go thru? i just used cat and echo commands in my app we just finished recently.  

Re: [android-developers] Re: Running adb logcat and dmesg commands from within my app.

2011-01-04 Thread Dianne Hackborn
Note that shell commands are not part of the SDK, so there are no guarantees that commands you are executing will continue to work in the future. On Tue, Jan 4, 2011 at 1:34 PM, Jay j.gato...@gmail.com wrote: This is exactly the kind of stuff I was looking for. I'll dig in, thanks. On Jan

[android-developers] Re: Running adb logcat and dmesg commands from within my app.

2011-01-03 Thread FrankG
Seems that you are looking for a terminal emulator like this one .. https://github.com/jackpal/Android-Terminal-Emulator/wiki Good luck ! Frank On 31 Dez. 2010, 22:48, Jay j.gato...@gmail.com wrote: I started reading that, but it still doesn't complete sense. Are there any other more

[android-developers] Re: Running adb logcat and dmesg commands from within my app.

2010-12-31 Thread Jay
I started reading that, but it still doesn't complete sense. Are there any other more descriptive documents on this out there? On Dec 30, 7:33 pm, jotobjects jotobje...@gmail.com wrote: You get an InputStream from the Process returned by the exec call. Read and study the javadoc for

[android-developers] Re: Running adb logcat and dmesg commands from within my app.

2010-12-30 Thread Jay
I also want to be able to run commands like 'ls' and 'cat' On Dec 30, 5:09 pm, Jay j.gato...@gmail.com 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

[android-developers] Re: Running adb logcat and dmesg commands from within my app.

2010-12-30 Thread jotobjects
You get an InputStream from the Process returned by the exec call. Read and study the javadoc for java.lang.Runtime an java.lang.Process. On Dec 30, 3:14 pm, Jay j.gato...@gmail.com wrote: I also want to be able to run commands like 'ls' and 'cat' On Dec 30, 5:09 pm, Jay j.gato...@gmail.com