When I create the local.prop file using the java code I am getting
permission denied exception. I have set the necessary permissions like
android.permission.MODIFY_PHONE_STATE,
android.permission.WRITE_EXTERNAL_STORAGE etc.,

Here is the code snippet.
String baseDir = Environment.getDataDirectory().getAbsolutePath();
File f = new File(baseDir + File.separator + debugPropFile);
f.createNewFile();

on calling f.createNewFile() it throws IO Exception permission denied.
Any help will much appreciated.

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

Reply via email to