I can't answer you question - but remember that an SD card is generally formatted as FAT32 and FAT32 has no support for any features of the Linux file system - such a permissions.
Martin.
Thanks for the reply warwound, I will keep the FAT types in mind. All I am trying to do is put a file in the sdcard or /data/data/my-app/files directory with just RWX permissions.
Strangely, I tried and downloaded a test apk from the web and that one can create a RWX file in their /data/data/their-app/files directory on the same emulator.
?? How can they get access and I can't ??
Just not my app.
P.S I can do it through ADB, but that doesn't solve my problem with each phone.