I have an html file in /mnt/sdcard/packagename/files/something.html path. Now I want to load this file into the webview.
When I surfed for this, I heard something about content provider, but still not cleared exactly how to do it.
Any answer?
Thanks in advance,
Tejaswi Marakini
if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)){
Log.d(TAG, "No SDCARD");
} else {
webComp.loadUrl("file://"+Environment.getExternalStorageDirectory()+"/packagename/files/something.html");
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With