[android-developers] Re: Finding the data directory of an application

2009-01-29 Thread Chander Pechetty
you can use the second one in your activity. 1. getFilesDir().getAbsolutePath() 2. getFilesDir().getParentFile() Check the javadocs for ContextWrapper On Jan 29, 2:13 pm, "info.sktechnol...@gmail.com" wrote: > Is there a preferred way to find the data directory of an application, > other than st

[android-developers] Re: Finding the data directory of an application

2009-01-29 Thread Mark Murphy
info.sktechnol...@gmail.com wrote: > Is there a preferred way to find the data directory of an application, > other than starting with android.os.Environment.getDataDirectory() > and appending "/data/" and the package name? Context#getFilesDir(). Bear in mind that Activity and Service are subclas