how to store text files or pdf in sdcard and then show it in android emulator in Eclipse ?
i am newbie to android.i have not written any code.
please tell me how to accomplish this.any refernce and open source code would be really helpfull
how to store text files or pdf in sdcard and then show it in
Share
First you should get the root directory with the static method
Environment.getExternalStorageDirectory();
which returns a File. Then you can work like in traditional Java with it’s I/O API. Inside the emulator, in your code, you can navigate through files and directories with no problem whatsoever.