Rajapandian
Rajapandian

Reputation: 9317

How do I access the data files belongs to a application in Android?

I don't how to do this task.
Using the getpath() method I can get the path of the database.

In the Terminal Emulator using commands I can see the database file which contains the queries that I have executed, the file is saved in the emulator memory.

How can I access that file from an android application. Is this possible? Please help me.

Upvotes: 2

Views: 451

Answers (1)

reflog
reflog

Reputation: 7645

You can get getContext().openFileInput() to get files created by/for the current application. These files are in /data/data/com.you.application/ and have the uid/gid related to the app for security purposes

Upvotes: 2

Related Questions