This is exactly the kind of stuff I was looking for.

I'll dig in, thanks.

On Jan 3, 11:25 am, Roger Podacter <[email protected]> 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.  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 "shellcommand" this is already developed to allow you to
> easily perform terminal commands of this nature in your java code.  it
> clearly shows how to get the exec call return etc.
>
> i linked the source code of my app for reference on github, but i'm
> probably not allowed to post links yet.
>
> hope this message goes thru this time.
>
> RP
>
> On Jan 3, 8:01 am, FrankG <[email protected]> wrote:
>
> > 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 <[email protected]> wrote:
>
> > > 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 <[email protected]> wrote:
>
> > > > 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 <[email protected]> wrote:
>
> > > > > 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,- Zitierten Text ausblenden -
>
> > > - Zitierten Text anzeigen -- Hide quoted text -
>
> > - Show quoted text -

-- 
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

Reply via email to