Please don't hard-code that path and use the appropriate API in
Context instead, so that your app continues to work if/when that path
changes.
JBQ
On Wed, Dec 17, 2008 at 4:23 AM, shuoshuo wzshuos...@gmail.com wrote:
Yes, I see, I create file on /data/data/mypackagename/ could succeed.
Yes, I see, I create file on /data/data/mypackagename/ could succeed.
Thanks all .
On 12月17日, 上午12时21分, Jean-Baptiste Queru j...@google.com wrote:
You're trying to write in a location (/data) where your app doesn't
have write permissions.
JBQ
On Mon, Dec 15, 2008 at 10:04 PM, shuoshuo
We're using it to make directories on the SD card with no trouble.
Can you make those directories by hand via the adb shell ?
R
On Dec 16, 6:04 am, shuoshuo wzshuos...@gmail.com wrote:
I use new File(/data/mydir/tmp).mkdirs() to create dir mydir and
tmp, but it can not be created, does
Sorry, you can create something in /data/data/package.of.your.app/.
Basing on what I see in abd shell, owner of /data/ directory is
system and a group is system. Moreover, there's no permission to read/
write for others, so you can't create something there. /data/data/
has the same properties.
You won't be able to create a directory or any files in /data.
Besides that's the phone memory. You probably want to do this on
the SD card instead.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android
5 matches
Mail list logo