thanks for your reply,
so if I have a script file now,
the script file content wants to mount a device or do some control
such as open wireless connection,
and wants app to execute script file,
if it possiable?
thanks!
On 8月29日, 上午1時42分, Dianne Hackborn hack...@android.com wrote:
Keep in
This kind of stuff isn't part of the SDK. If you are developing a device,
you can ask these kinds of questions on android-porting. If you are writing
an application, you should stick with the SDK.
2009/8/30 tstanly tsai.sta...@gmail.com
thanks for your reply,
so if I have a script file
On Aug 28, 5:54 am, tstanly tsai.sta...@gmail.com wrote:
I want to use command like ls,mkdir,cd,./..etc, in the app,
somebody says use Runtime class,
Runtime.getRuntime().exec(ls);
but there is nothing happen..
ls may not be a great choice as it's not going to have any way to
display
Keep in mind that shell commands are not part of the SDK. These commands
will and do change between releases, with no predictability (for example
different output, etc). And for all of the commands that are simple enough
that they are less likely to change (such as mkdir), it is much more
Try to use the Java class File for operations on the file system.
Some of the system commands are not executable using exec if you are
not root.
--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author
5 matches
Mail list logo