Hi to all.I use the following code to check file availability
File f1=new File("/data/data/com.myfiledemo/files/settings.dat");
if(f1.exists())
textview.setText("File Exist");
If i use the following code it's not responding
File f1=new File("settings.dat");
if(f1.exists())
tv.setText("File Exist");
Here com.myfiledemo is my application package . I simply create the file like this
fileInputstream = openFileInput("settings.dat");
why It's not responding for the second if condition.??Is it Wrong??