Issue
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
Solution
if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)){
Log.d(TAG, "No SDCARD");
} else {
webComp.loadUrl("file://"+Environment.getExternalStorageDirectory()+"/packagename/files/something.html");
}
Answered By - user370305
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.