I am developing an android app and I want to read an xsl file. I have following code
File rootPath=Environment.getExternalStorageDirectory();
try {
File randomContactsFile = new File(rootPath.getPath()+"/assets/LoginTest.xlsx");
System.out.println(randomContactsFile.exists());
}catch(Exception e){
}
randomContactsFile.exists()
returns false and I'm getting file not found exception.
Please help.
Thanks