There is one file which is present in following mentioned path.
File: FileUtils.java (\frameworks\base\core\java\android\os)
Functon: public static native int setPermissions(String file, int
mode, int uid, int gid); // Native Function
But you can not use in eclipse as it is *not* part of android SDK.
You can only use this when you are compiling you application with full
source code of android in linux environment.
Thanks,
AJ
On Apr 4, 10:11 pm, Kumar Bibek coomar@gmail.com wrote:
Not all files will have the permission to edit/delete. You should
first check for the permission before doing an operation on a file.
Thanks and Regards,
Kumar Bibek
On Apr 4, 8:42 pm, brijesh masrani masrani.brij...@gmail.com wrote:
Hello Everyone
I want to modify a text file using Android program .
I searched about that and i found that I have to copy whole content of file
and than Modify it and save it to other file and than Delete Original file
and rename the Modified one.
I tried file.delete() method But i am getting error of permission denied to
delete that file.
So can anyone help me As Soon As possible
Regards,
Brijesh Masrani.
--
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
To unsubscribe, reply using remove me as the subject.