Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9016049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:53:52+00:00 2026-06-16T03:53:52+00:00

WebView wv = (WebView) findViewById(R.id.webview1); wv.setWebViewClient(new Callback()); WebSettings webSettings = wv.getSettings(); webSettings.setBuiltInZoomControls(true); final String

  • 0
WebView wv = (WebView) findViewById(R.id.webview1);
    wv.setWebViewClient(new Callback());
    WebSettings webSettings = wv.getSettings();
    webSettings.setBuiltInZoomControls(true);

    final String mimeType = "text/html";
    final String encoding = "UTF-8";
    String html = "<H1>A simple HTML page</H1><body>" +"<a>link using anchor tag</a>"+

            "<p>The quick brown fox jumps over the lazy dog</p>";
            wv.loadDataWithBaseURL("", html, mimeType, encoding, "");

after link, I want so show image. so
how to put address of that image if it is stored in /images folder of sdcard
i.e. what should be address in src attribute?

regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:53:53+00:00Added an answer on June 16, 2026 at 3:53 am
    mWebView = (WebView) findViewById(R.id.webview);
    mWebView.getSettings().setAllowFileAccess(true);
    mWebView.getSettings().setJavaScriptEnabled(true);
    mWebView.getSettings().setBuiltInZoomControls(true);
    String base = Environment.getExternalStorageDirectory().getAbsolutePath().toString();
    String imagePath = "file://"+ base + "/test.jpg";
    String html = "<html><head></head><body><img src=\""+ imagePath + "\"></body></html>";
    mWebView.loadDataWithBaseURL("", html, "text/html","utf-8", "");  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My Webview setting for now is.. wv = (WebView) findViewById(R.id.webView1); wv.setHorizontalScrollBarEnabled(true); wv.setKeepScreenOn(true); wv.getSettings().setJavaScriptEnabled(true); wv.getSettings().setBuiltInZoomControls(true);
I have the below code: mWebView = (WebView) findViewById(R.id.webview); mWebView.getSettings().setJavaScriptEnabled(true); mWebView.loadUrl(http://www.facebook.com/example); mWebView.setWebViewClient(new CallBack()); When
public class WeeklyInspection : Activity { WebView view = (WebView) FindViewById(Resource.Id.inspectionWV); view.Settings.JavaScriptEnabled = true;
I want to add this code to my java file: webView.setWebViewClient(new WebViewClient(){ public boolean
I am loading url into webview: WebView webview=(WebView)findViewById(R.id.webview); webview.loadUrl(url); It's taking some time to
A Webview will display links in the content HTML as having blue underlines. So
I use WebView + addJavascriptInterface to control my app from html page shown in
hello i'm using this example http://lexandera.com/2009/01/extracting-html-from-a-webview/ to get the HTML from a webview. But
I have a webview that has html video inside it. I want to show
public class hello extends Activity, ListActivity { WebView main_webv; ListView main_listv; public static final

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.