Tuesday, June 19, 2012

How to open a local file in Android browser?

Important thing here is you have to use file:// + path


 private String genLocalPageUrl(String fileName)  {
    return "file://" + this.getFilesDir() + "/" +  fileName ;
 }

No comments:

Post a Comment