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
info.sktechnol...@gmail.com wrote:
Is there a preferred way to find the data directory of an
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
subclasses
2 matches
Mail list logo