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

  • Home
  • SEARCH
  • 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 1030991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T13:51:30+00:00 2026-05-16T13:51:30+00:00

Following is my html content which i want to show in the webview using

  • 0

Following is my html content which i want to show in the webview using android sdk. It will displays only

//Please

But when I put this HTML content into the browser then it shows differently.

<br /><br />Read the handouts please for tomorrow.<br /><br /><!--homework help homework


help help with homework homework assignments elementary school high school middle school



// --><font color="#60c000" size="4"><strong>Please!</strong></font>

Please suggest how to resolve this problem

I have another problem that in HTML content there is a tag

<img src="http://www.homeworknow.com/hwnow/upload/images/tn_star300.gif" border="0" />

in this images does not shows.

  • 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-05-16T13:51:31+00:00Added an answer on May 16, 2026 at 1:51 pm
    1. Use web.loadDataWithBaseURL instead of web.loadData (And don’t forget to escape strings where it’s needed)
    2. You need to add internet permission to download images and view them in your manifest file.

    This example works for me:

    public class SimpleMusicStream extends Activity {
        @Override
        public void onCreate(Bundle icicle) {
            super.onCreate(icicle);
            setContentView(R.layout.main);
    
            WebView wv = (WebView) findViewById(R.id.WebView01);        
    
            final String mimeType = "text/html";
            final String encoding = "UTF-8";
            String html = "<br /><br />Read the handouts please for tomorrow.<br /><br /><!--homework help homework" +
                    "help help with homework homework assignments elementary school high school middle school" +
                    "// --><font color='#60c000' size='4'><strong>Please!</strong></font>" +
                    "<img src='http://www.homeworknow.com/hwnow/upload/images/tn_star300.gif'  />";
    
    
            wv.loadDataWithBaseURL("", html, mimeType, encoding, "");
        }
    
    }
    

    And don’t forget to add:

    <uses-permission android:name="android.permission.INTERNET"></uses-permission>
    

    in your AndroidManifest.xml file

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to show the content of ViewData, which holds string in my case,
In an oscommerce site I have the following: Server response = Content-type: text/html;charset=UTF-8 and
The following html code works in Firefox, but for some reason fails in IE
I'm using the following html to load dojo from Google's hosting. <script src=http://www.google.com/jsapi></script> <script
I want to show a popup screen on my page using JQuery UI Dialog
My HTML has cell = document.createElement(td); cell.appendChild(document.createTextNode(contents)); cell.setAttribute('width', '100'); The following syntax is not
The following Html works great for me in FireFox or IE7/8 (with or without
The following HTML looks as required in Firefox 2 & 3 and IE7. The
I have the following html.erb code that I'm looking to move to Haml: <span
I have the following HTML <select> element: <select id=leaveCode name=leaveCode> <option value=10>Annual Leave</option> <option

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.