Possible Duplicate:
Test if file exists
I have stored one file in /files folder of my android app internal file system. I want to check whether it is stored there or not programatically.How i can check that?Please help me.
File file = getBaseContext().getFileStreamPath("Android.mk"); if(file.exists()) { Toast.makeText(this,"Android.mk exist", Toast.LENGTH_LONG).show(); }
Thanks in advance.