Reputation: 25
I have just written some code which creates a file "config.txt" and writes some data to it, but the problem is I do not know where to find this file to check whether the data is correct or not.
Could someone please tell me which directory to look under.
I am using the android emulator to test my apps.
Thanks,
Callum
Upvotes: 0
Views: 48
Reputation: 6705
It depends on how you created the file: it could be in a number of places. If you didn't put it on the SD Card, however, the most likely place to find it is:
/data/data/
So, if your Manifest declares your application like this:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.my.app"
Then your file will be somewhere in the directory
/data/data/com.my.app/
Upvotes: 1