Where in the eclipse project folder are files stored in External Storage?

748 Views Asked by At

I'm trying to implement a set of methods that read from and write to text files in External Storage in android (18, 4.3.1). I normally use AssetManager, but that's read only.

I want to initialize these files with values, but I don't know where the External Storage directory is in the Eclipse project folder. The method I'm using to get the path is the following:

        File sdCard = Environment.getExternalStorageDirectory();
        File file = new File(sdCard, "passwords.txt");

        ...

Edit: This may have been written confusingly. I want to know where to put my text file in my eclipse project so that the Android Virtual Device loads it into External Storage, and I can find that path.

1

There are 1 best solutions below

4
On

if u want to see your stored file. you can see these file into Your device. if You want to initialize the file object then You need to provide the absolute path of the file which is in your device. it is not related with eclipse

if u want to know the absolute path. go to file file manager in our device and check those file there. all the file Which You Stored into the external storage, available in that directory