There are definitely going to be situations where this path is different
from the particular constant you see today on your device.  Whether this
path could change on you after a platform update where your app's data is
still left intact...  I doubt that would happen, and if it did we'd probably
have to do something about existing apps for compatibility.

On Mon, Oct 24, 2011 at 12:43 PM, RLScott <fixthatpi...@yahoo.com> wrote:

> My app manages a set of data files organized into folders.  Of course
> they are all under the app's root folder of:
>
>   getFilesDir().getAbsolutePath()
>
> As part of my saving of the application state in onPause, I need to
> save the current directory.  Because of the way I navigate up and down
> the folder tree, the most convenient form for me to store the current
> directory is as an absolute path.  I could do that, but I have a
> concern.  What if the user upgrades his Android OS after my app has
> saved the current folder info?  Is it possible that some future
> version of Android will use a different app path for my documents?  If
> so, that would invalidate my saved current directory, and the next
> time the user tries to open my app after that Android upgrade, it will
> probably crash with an improperly formed full path name.  I don't care
> what the absolute path is to my app's documents.  I just don't want it
> changing behind my back.  Is that something I need to worry about?  Or
> must I find a way to save the relative folder name rather than the
> absolute?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Reply via email to