Hi,
Is there a way to programatically get the path to the databases/files an application uses instead of hardcoding "data/data/mypackage.com/database.db" ?
Hi,
Is there a way to programatically get the path to the databases/files an application uses instead of hardcoding "data/data/mypackage.com/database.db" ?
For files: Context.getFileStreamPath()
(alternatively, Context.getFilesDir()
for the whole directory).
For databases: Context.getDatabasePath()