[android-developers] Re: mkdir() fails when min sdk version is 4

2010-09-12 Thread milind
There is no uses-permission-group tag.  Permissions are just for declaring permissions, for help in displaying them to the user. You are right. That was careless of me. I mistakenly used that tag after looking at http://developer.android.com/reference/android/Manifest.permission_group.html

[android-developers] Re: mkdir() fails when min sdk version is 4

2010-09-11 Thread milind
Actually, I made a mistake. If I have the uses-sdk in the manifest, no matter what the value, it fails to create the directory. I do have the write_external_storage permission. The code used to work until I upgraded the SDK to 2.1 I think. This used to work till around 2.0 of the sdk. If I

Re: [android-developers] Re: mkdir() fails when min sdk version is 4

2010-09-11 Thread Mark Murphy
On Sat, Sep 11, 2010 at 6:19 PM, milind mili...@gmail.com wrote: Actually, I made a mistake.  If I have the uses-sdk in the manifest, no matter what the value, it fails to create the directory.  I do have the write_external_storage permission. The code used to work until I upgraded the SDK to

Re: [android-developers] Re: mkdir() fails when min sdk version is 4

2010-09-11 Thread Dianne Hackborn
On Sat, Sep 11, 2010 at 3:19 PM, milind mili...@gmail.com wrote: \ uses-permission-group android:name=android.permission- group.STORAGE / This should be uses-permission -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I

[android-developers] Re: mkdir() fails when min sdk version is 4

2010-09-11 Thread milind
Thanks Dianne. That was it. It worked as soon as I changed uses-permission-group android:name=android.permission- group.STORAGE / to uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / I had neither in the old code. Probably a tightening of specs in 2.1. I do

Re: [android-developers] Re: mkdir() fails when min sdk version is 4

2010-09-11 Thread Dianne Hackborn
On Sat, Sep 11, 2010 at 9:13 PM, milind mili...@gmail.com wrote: I had neither in the old code. Probably a tightening of specs in 2.1. I do wonder what the permission group does. I thought that I saw that in some old post and used it. Seems like the correct one since I assumed it would

[android-developers] Re: mkdir

2010-01-16 Thread Business Talk
Thanks Philip, you are right, It should'v been mkdirs. But even so it still returns false. My example was a little confusing as to the directory names; all of them are directories; File directory = _Context.getFileStreamPath(); File subdirectory = new File(directory, subdir1/subdir2/subdir3);

[android-developers] Re: mkdir

2010-01-16 Thread Business Talk
Philip, it did work after all. thanks. On Jan 16, 8:38 am, Business Talk roman.businesst...@gmail.com wrote: Thanks Philip, you are right, It should'v been mkdirs. But even so it still returns false. My example was a little confusing as to the directory names; all of them are directories;