ebmajor wrote:
> Hi all,
> 
> I just got  the Dev Phone G1 so I install my apk, named myapp.apk on
> it.
> 
> But my application's working directory is /system/myapp which is
> mounted
> 
> as read-only.
> 
> So I want to change my working directory to /data.
> 
> How can I change this ?

1. I would not rely upon a "working directory".

2. Your application files should go in the directory identified by
Context#getFilesDir(), which so far maps to
/data/data/your.package.here/files.

3. On a device, you cannot read or write from the root of /data, IIRC.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training in Sweden -- http://www.sotrium.com/training.php

--~--~---------~--~----~------------~-------~--~----~
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