I want to check if a text file exists on the SD card. The file name is mytextfile.txt. Below is the code:
FileOutputStream fos = openFileOutput(\"sdcard/myte
*Using this you can check the file is present or not in sdcard *
File file = new File(sdcardpath+ "/" + filename); if (file.exists()) { }