[android-developers] Re: Running linux commands from java code

2009-08-12 Thread Dianne Hackborn
On Wed, Aug 12, 2009 at 10:54 AM, Jason Proctor < jason.android.li...@gmail.com> wrote: > IMHO, much better to do this from Java with File.listFiles() > much fewer clock cycles die this way :-) And much less likely to break in the future. :) Because running shell commands is not part of the SDK

[android-developers] Re: Running linux commands from java code

2009-08-12 Thread Roman ( T-Mobile USA)
Runtime.getRuntime().exec("ls -a"); -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 8:26 

[android-developers] Re: Running linux commands from java code

2009-08-12 Thread Roman ( T-Mobile USA)
Runtime.getRuntime().exec("ls -a"); -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 11, 8:26 

[android-developers] Re: Running linux commands from java code

2009-08-11 Thread Dianne Hackborn
Hi, executing shell commands is not a supported part of the SDK, so this would probably be best asked on android-porting. On Tue, Aug 11, 2009 at 8:26 PM, human android wrote: > > I am trying to execute "ls -a" from java code, any idea how to do so. > > > -- Dianne Hackborn Android framework e