Hello Mark,

In java.io, the File API is supposed to provide APIs like

setExecutable (boolean)
setWritable (boolean)
setReadable (boolean)

However, in the android.jar which includes all the needed classes,
the java.io package doesn't provide the above APIs in the File class.

Has this been done for security reasons ?
Which means if an application downloads some bytes and writes to
a file created through the below code

File destination = new File ("/sdcard/myfile.txt");

there is no way to change permissions of 'myfile.txt' to 777 ?

There is a 'Runtime' facility provided through java.lang, but I'm
skeptical
whether to use this or not. Runtime would only work on rooted devices
right?

eg.,
http://stackoverflow.com/questions/6290307/android-runtime-command-problem

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

Reply via email to