[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 pm, human android vanquisher.sin...@gmail.com wrote:
 I am trying to execute ls -a from java code, any idea how to do so.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 pm, human android vanquisher.sin...@gmail.com wrote:
 I am trying to execute ls -a from java code, any idea how to do so.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, we shouldn't be
helping people do this here.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
vanquisher.sin...@gmail.comwrote:


 I am trying to execute ls -a from java code, any idea how to do so.
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---