Full width home advertisement

Post Page Advertisement [Top]

How to display custom text, html and local store images on Andoid Webview

public void viewData()
WebView w=(WebView)findViewById(R.id.webView1);


myData= "<html><body><img src='file:///android-res/raw/myfile.jpg' />This is test webpage</body></html>";



In this, i have putted a file "myfile.jpg" in res/raw/ folder.
And putted a webView with name "webView1"


Assests Folder Path:->   file:///android-assests/
Raw Folder Path:->       file:///android-res/raw/

No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib