Local images using the Protocol of cod in BrowserField

Hello world

I try to get the BrowserField displaying local images stored in my res folder.

for example, I display a div with a background image. in the style attribute, I specify the backround image url attribute:

Cod://ModuleName/image.PNG

Here ModuleName is simply the name of my Eclipse project.

When I run my app in the Simulator, everything is ok and the images appear fine, but when I'm debugging my application on a device (eclipse-online-online bb device debug), none of my images are displayed.

I thought it was because of the moduleName which wasn't good, but I couldn't find a way to retrieve the name of the exact module of my application to my application (like a getModuleName() method). When I use the AppDescriptor.currentAppDescriptor.getModuleName () (or something like that) I got an error.

Thank you for your help

Hello

Instead of using "cod://moduleName/image.png", change as shown below in the instructions.

If OS 4.7 and low version-

"data:". So if you kept the resources folder of images a structure "localresource/src/images /", then the path should be built as "data:///localresource/images/image1.png".

If OS 5.0 and higher, using the BrowserField2 API-

"local:". So if you kept the resources folder of images a structure "localresource/src/images /", then the path should be built as "local:///localresource/images/image1.png".

I would like to know if it works.

Tags: BlackBerry Developers

Similar Questions

  • my wireless connection says "restricted access" no network connection. I used the same key code to get my other computer online

    my wireless connection says "restricted access" no network connection, I used the same key code to get my other computer I can have up to 5 computers online at the same time online.

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hello

    This means that the computer cannot connect to the router.

    Try this process.

    Check the Device Manager for the wireless card valid entry.

    http://www.ezlan.NET/Win7/net_dm.jpg

    If there is no valid entry, remove any entry from fake and re - install the drivers for the wireless card.

    Check network connections to make sure that you have a network icon/entry wireless connection, and that the properties of the icon (right-click on the icon) are correctly configured with the TCP/IPv4 protocol in the properties of network connections.

    http://www.ezlan.NET/Win7/net_connection_tcp.jpg

    Make sure that if there is Wireless Utility a utility vendor is not running with the native Windows wireless utility.

    Make sure you firewall No. preventing / blocks wireless components to join the network.

    Stack TCP/IP work should look like.

    Right-click on the wireless network connection card, select status, details and see if she got an IP address and the rest of the settings.

    http://www.ezlan.NET/Win7/status-NIC.jpg

    Description is the data of the card making.

    The physical address is MAC of the card number.

    The xx must be a number between 0 and 255 (all xx even number).

    YY should be between 0 and 255

    ZZ should be between 0 and 255 (zz all the same number.)

    The date of the lease must be valid at the present time.

    * Note 1. IP that starts with 169.xxx.xxx.xxx isn't valid functional IP.

    * Note 2. There could be an IPv6 entries too. However, they are not functional for Internet or LAN traffic. They are necessary for Win 7 homegroup special configuration.

    ---------------------------------------------------

    Above everything is OK, you must be able to connect to the router.  A window that says connected does not mean that you are really connected. Connection to the router means that you can enter the IP of the router base in an address bar in one go, being able to connect and configure the router menus see. If it is not connected in the log to router from any computer that can connect to the router wirelessly with a wire, disable wireless security, (make sure that the wireless SSID broadcast) is on and try to connect with no. wireless security.

    --------------------------------------------------

    I really checked and configured every thing and it doesn't work.

    Software firewall application that is not configured to allow local traffic (between the computer and the router is also a possible problem.
    some 3rd party software firewall continue to block the same aspects it traffic Local, they are turned Off (disabled). If possible, configure the firewall correctly or completely uninstall to allow a clean flow of local network traffic. If the 3rd party software is uninstalled, or disables, make sure Windows native firewall is active .

    Jack-MVP Windows Networking. WWW.EZLAN.NET

  • some computers cannot acquire images using the PCI-1410

    I have a big problem in the acquisition of the images using the PCI-1410.

    It was a standard camera (SONY XC-ES). The test of the device is OK with my computer.

    I can not get a correct image via MAX. Also, I try to use the file of the camera for that camera.

    But it did not work properly.

    I consulted it toward the Korea of NEITHER and they discover THAT PCI-1410 worked properly with different computers.

    So, I try to change PC. Most of my computers cannot acquire the image even if the unit is OK of MAX.

    However, only a few computer works properly. (Work computers are from SAMSUNG. The other

    computers that did not work propely, were assembled in the lab.) (I have tested almost 6 computers for this purpose.)

    The problem is that there are at least 3-4 PCI ports for our applications. The work computer (SAMSUN) only has 2 ports PCI.

    What should I do to select the right computers? I can't buy dozens of computers to test the PCI-1410.

    Why is this kind of problem occurs?

    Thanks in advance for your advice. (Email: [email protected])

    Hello

    We also had a lot of problems in the past with different PCs and the problem came from the motherboard. Since that time, we only use motherboards with intel because we know that labview works very well with them.

    It was 2 or 3 years ago, and I thought that the problem has been resolved since then... you know the type of motherboards you use?

  • Tried to re - install XP with Microsoft Certified intallation disk using the original key code, but the installer doesn't recogize my valid original key code.

    Tried to reinstall XP with Microsoft Certified intallation disk using the original key code.  But the installer refuses to recogize my valid original key code.  How can I "force" the program to accept the code and/or how to circumvent the code and reinstall XP?

    original title: tried to reinstall XP

    How to activate Windows XP
    http://support.Microsoft.com/kb/307890/en-us

    See the section titled: "how to activate Windows XP by phone.
    Also, make sure that you do not confuse the product key numbers and letters
    (number 8 for the letter B, etc.)

    Blank page to activate Windows in the wizard of Windows Product Activation
    http://support.Microsoft.com/kb/314935

    How to contact a Microsoft Product Activation Center:
    http://support.Microsoft.com/default.aspx/KB/950929/en=us

    Microsoft Activation centers worldwide telephone numbers:
    http://www.Microsoft.com/licensing/existing-customers/activation-centers.aspx
    (This site is for activating Volume License, but if you call, they will help you)

    The phone number is not working:
    Microsoft Wordwide contacts: http://www.microsoft.com/worldwide/default.aspx

    Once Windows activated / Genuine Advantage Notifications:
    http://www.Microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=afd45b36-3d77-4259-801c-d31a9a90cdcf
    (This tool will confirm that the copy of Windows installed on your PC is genuine and authorized)

    J W Stuart: Http://www.pagestart.com

  • How to make an image using the camera on my pc

    I want to take a picture of my laptop but cannot find the button

    Hi carolewyne

     

    1. What are the brand and model of the laptop?

    2. you have software installed for the camera to use?

     

    If you want to take a photo using the camera in the phone, then maybe you should use a utility support for the device that is provided by the manufacturer. It will help you get the image using the camera. You can visit the manufacturer's Web site and download the software for the device is functioning correctly.

     

    I hope this helps.

  • Can I use the Vista key code to activate this Windows 7?

    Original title: Windows 7 and key code

    I have a Dell laptop that I replaced the drive on. Originally Vista and Windows 7. I reloaded Vista but if I load this https://www.microsoft.com/en-us/software-download/windows7

    Can I use the Vista key code to activate this Windows 7?

    No, you need the product key for Windows 7, Windows 7 uses its own unique product key. What you can do is to reload the old hard drive, and then try to recover the product key:

    Here are four utilities, which can display your product keys if they are still there:
    Belarc Advisor: http://www.belarc.com/free_download.html
    (He did a good job of providing a wealth of information.)
    Also: http://www.magicaljellybean.com/keyfinder.shtml
    and: http://www.nirsoft.net/utils/product_cd_key_viewer.html
    and RockXP: http://www.majorgeeks.com/download4138.html which has additional features
  • How can I get rid of the background yellow when I display an image using the photo viewer?

    Original title: Windows Photo Viewer

    How can I get rid of the background yellow when I display an image using the photo viewer? It gives images a yellow cast.

    Thank you

    Ed Fuller

    How can I get rid of the background yellow when I display an image using the photo viewer? It gives images a yellow cast.

    Thank you

    Ed Fuller

    Hi Ed

    See the following for the patch thread.

    Windows 7 photo viewer shows images with an orange and yellow tint:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/window-7-photo-viewer-shows-pictures-with-orange/e5d31c5e-ae84-4EBD-bbe9-9428f410560b

    Concerning

  • Can I use the Google Tracking Code hyperlinks?

    Can I use the Google Tracking Code hyperlinks?

    Yes. Only if the links are not assets Eloqua.

    Thank you.

  • Can we use the Google Tracking Code on the hypertext links?

    Hello world

    We use the Google Tracking Code on the hypertext links?

    Thank you

    Hey,.

    Yes, we can use the Google Tracking Code on hypertext links if links are not assets Eloqua.

    Thank you

    edynamic expert Eloqua

  • Problem with copy paste function (for images) using the TinyMCE editor

    Can not copy paste images (a document - text Copies OK) to the tinyMCE editor in Windows 8. Seems to be the specific question of operating system.

    Use the tinyMCE editor for info on the download Web site. Copy-paste function works very well on a Windows7 machine

    Hi Anand,

    I would be grateful if you can help me with the following information related to the TinyMCE editor:

    1. What is the Web browser that you use to copy and paste images via the application editor TinyMCE?
    2. What exactly happens when you try to copy and paste images using the editor? You receive an error message?

    This problem may occur because of the compatibility of the browser with the TinyMCE editor.

    Check out these links and check if the suggestions help you to solve the problem:

    http://www.TinyMCE.com/forum/viewtopic.php?PID=34916

    http://www.TinyMCE.com/develop/bugtracker_view.php?id=6075

    If the problem is specific to the TinyMCE editor, you can also contact the support of TinyMCE:

    http://www.TinyMCE.com/enterprise/support.php

    Please let us know if you need more help on this issue. Otherwise, feel free to ask for more queries on Windows.

  • I had to reboot my system and then to install my ACC, I used the same product key (redemption code). However, the system says that the code has been used. Anyone can teach me how I can use the same installation code to download VAC. Thank you in advance

    I had to reboot my system and then to install my ACC, I used the same product key (redemption code). However, the system says that the code has been used. Anyone can teach me how I can use the same installation code to download VAC. Thank you in advance.

    Download/install the desktop application, connect and install applications subscription.

    https://helpx.Adobe.com/creative-cloud/help/download-install-app.html

    Creative cloud to desktop

    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Sign out, sign in | Creative office cloud app

    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Install, update, or uninstall applications

    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

  • Anyone know why the images using the viewer keep appearing behind the thumbnails?

    Anyone know why the images using the viewer keep appearing behind the thumbnails?

    Can you provide a link?

    Probably your best way to do it would be to create your first "lightbox" like a ToolTip by using the ToolTip Widget, and then that way you nest not viewers.

    But if you can provide a link maybe I can think of a better way to do it.

  • First Pro CC does not my images using the space bar or the button "play" on the work area.

    First Pro CC is not my images using the space bar or the button "play" on the work area, I can rub but can't play.

    Ok. Downloaded the update of Blackmagic and got Audio and reading! great, now the only thing missing is the fact that display power videos don't go to the SONY's Trimaster of 5 thousand dollars which is connected to the Blackmagic and where I should introduce all the movies to my boss. had this problem on CS6 - returned to FC7 because of that and if it cannot be solved will have to do it again. the preferences panels are no help.

    In fact, im only using the first because my boss wants that the entire Adobe workflow, but the boy is mute first. (always love AF)

  • added text to an image using the ImageDrawText function

    I added text to an image using the ImageDrawText function

    My requirment is i wnt to change the color of text in red... .How can I?

    < cfset attr = StructNew() >
    < cfset attr.underline = "yes" >
    < cfset attr.size = 25 >
    < cfset attr.style = "bold" >

    < cfset x = 0 >
    < cfset x = 50 >
    < cfset text1 = "the position of the image is represented by (x, y).»  Each coordinates multiply with higher ratio to adjust the image. ">

    < cfset ImageDrawText (myImage1, Text1, 0, 50, attr) >

    The docs (the page I pointed you) indicate it was added in CF8.  It does not work in CF8?

    --

    Adam

  • Watermark image using the infectious BOVINE and Imagemagick rhinotraecheitis

    Hi all

    We have an obligation to create an image with a watermark text rendering. We use ImageMagick for conversion and have installed FreeType delegated in the Linux box. normal conversion by using the resize command works well, but after using the--draw the fate/police command, I get the error that is mentioned below

    Starts to create the 'MediumWatermark' of type 'Extra' rendering

    Create a rendering with the command: / usr/local/bin/convert - resize 352 x 300 > - fonts - draw 'fill South white text 0,0 'copyright' gravity' "/ OraApplBin/Oracle/Middleware/user_projects/domains/base_domain/ucm/ibr/vault/~temp/qaecmnode116200/1466/2462.jpg" "/ OraApplBin/Oracle/Middleware/user_projects/domains/base_domain/ucm/ibr/vault/~temp/qaecmnode116200/1466/mediumwatermark3/mediumwatermark.jpg".

    The rendering of the 'MediumWatermark' failed. The engine has reported the following error: "convert: cannot open the image" gravity South fill text white 0,0 ' right of author ": @ error/blob.c/OpenBlob/2584.

    convert: no delegate for this image format decoding "" gravity South fill text white 0,0 ' right of copyright "@ error/constitute.c/ReadImage/532." "

    Finished the return 'MediumWatermark '.

    Below is my extraRendition_definitions.hda

    ImageMagick = / usr/local/bin/convert

    ImageMagic_Watermark = resize 352 x 300 > - 24 draw - fonts - pointsize

    @ResultSet ImageLibrary

    6

    extRenditionName

    extEngine

    extType

    extSourceFile

    extParameters

    extDescription

    MediumWatermark

    < $ImageMagick$ >

    Additional

    < $InFilePath$ >

    < $ImageMagic_Watermark$ > "gravity South fill white text 0,0 'copyright'" ' $inFile$ of <>"" < $outFile$ > .jpg.

    Average 352 x 300 pixels with watermark rendering

    @end

    Mentioned below, it is the delegates settled for ImageMagick

    TIFF of DELEGATES freetype jpeg


    I am capable of the same covert by using the command line

    converted - resize 352 x 300 - fonts - pointsize 24 - draw "gravity South fill white text 0,0"abcd"" input.jpg output.jpg

    Kindly help to solve the problem above, please advice if I am absent from all configurations.

    Thank you and best regards,

    Bryan

    Infact, is how I did it:

    ImageMagick = / usr/local/bin/convert

    ImageMagic_Watermark = resize 352 x 300 - pointsize 24 - draw "South of gravity fill white text 'copyright' 0,0 '.

    @ResultSet ImageLibrary

    6

    extRenditionName

    extEngine

    extType

    extSourceFile

    extParameters

    extDescription

    MediumWatermark

    <$ImageMagick$>

    Additional

    <$InFilePath$>

    <$ImageMagic_Watermark$>"<$inFile$>"  "<$outFile$>.jpg"

    Average 352 x 300 pixels with watermark rendering

    @end

Maybe you are looking for

  • account family of visible devices

    We have a family account. 3 members of my family (wife, husband, children) have their own Apple ID. When I connect with own mij ID Apple I see an additional device (to my wife), while using its own identifier for connection with Icloud Apple and the

  • Re: Can not find drivers for Satellite A200-204

    Dear Experts. I'm trying to download the driver for my Satellite A200-204 updates, but I can't seem to find this product in the list of products on this Web site.Can someone help me to define under which product family is A200-204? Thanks in advance.

  • Come regalare una gift online

    Hello to all IO sono in e UK wants to regalare una gift card a mia figlia che live in Italia, is on the line e mandandola by e-mailCome posso fare? Grazie

  • HP Officejet Pro 8500 a: open but still full of ink cartridges

    My HP Office Jet 8500 has just stop working. Even by replacing all black cartridges and color and the instructions given to me. I decided NOT to invest in new faces of printer and just bought a new printer. Is it possible to recycle or give them even

  • Windows security

    When I try to open a doc of the internet (for example a document my teacher wanted us to watch and it maintains a link on its website). A windows security box will open to the top and ask me my credentials, but I never put in place of the identificat