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 6130591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:52:34+00:00 2026-05-23T16:52:34+00:00

i have been trying to display html content along with image (using src attribute),

  • 0

i have been trying to display html content along with image (using src attribute), but have not been able to show the image.Rest of html works.I wonder what value should i give in to the src.My image location is : SDCard/someFolder/1.png .Iam targetting OS 5.0. please note i have to use the image from sdcard only

URI uri = URI.create("/SDCard/someFolder/1.png");

//replaced < by $ and > by & as this site dint let my use it :(

String htmlContent =  "$!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"&" +

"$HTML&" +

   "$BODY &" +

        "$form&" +

            "$div &$/div&" +

           " $input type=\"text\" &" +

    "$img src=" + uri  + " alt=\"some_text\"/& " +

            "$input type=\"submit\"&" +

        "$/form&" +

        "$b&Use the menu to change the search engine to use.$/b&" +

        "$br&" +

   "$/BODY&" +

"$/HTML&";


BrowserField myBrowserField = new BrowserField();

myBrowserField.displayContent(htmlContent, "http://localhost");

//add myBrowserField to screen;
  • 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-23T16:52:35+00:00Added an answer on May 23, 2026 at 4:52 pm

    got it working, Blackberry is so misleading, a simple path works instead of URI.i.e.
    “$img src= file:///SDCard/someFolder/1.png”.
    this misleaded me:
    http://docs.blackberry.com/en/developers/deliverables/6176/HTML_ref_img_564118_11.jsp
    telling src expects URI.

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

Sidebar

Related Questions

Greetings! I've been trying to display some HTML with Java using JEditorPane . But
I have been trying to create a HTML E-mail, which is just one image
I have been trying to set an image on an HTML.ActionLink by adding a
I have been trying to display json data in my jsp using struts and
I have been trying to implement Win32's MessageBox using GTK. The app uses SDL/OpenGL,
I have been trying to make a case for using Python at my work.
I have been trying to execute a button event in html page that displays
I'm new to Flash/AS3 and I have been trying to display objects from class
I have been trying to display a MySQL table for some time and I
I have been trying to load a html file in a webview in a

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.