Problems converting hex to int for the color to the graphics paint method Blackberry 6, 7

I have to analyze the hexadecimal value say #a9a9a9 of the JSON parser and save to DB.
In my application, this hexadecimal value must be extracted and converted to color for the color of text using the method of graph paint.

Used to record in DB data type is string. But I am facing problem when trying to convert the hexadecimal string
in full. Get exception hexadecimal number value being greater.

Please help me!

If your string contains "#a9a9a9", then you should skip the "#".  Thus, the code you need is probably something like:

Integer.parseInt (hexstr.substring (1), 16);

I am sure that it doesn't have to be top of the case, but if they always give a problem and you confirm that you are passing in 'a9a9a9', then you might consider making capital letters.

Tags: BlackBerry Developers

Similar Questions

  • problem with my laptop asking for the administrator password or power on password

    I have the same problem with my laptop asking for the administrator password or power on password. It is a compaq presario cq61. It happened when my hard drive failed and was not used for a long time. With the password, any help would be much appreciated. It says system turn off after a few trials with the key: 55427586

    Hello

    Try to enter: 40585508

    Kind regards

    DP - K

  • Problem creating discs of recovery for the Satellite L500-126

    Hello

    I have a problem of creation of recovery for the Satellite L500-126 disks.

    I'm using the Toshiba Recovery Disk Creator.

    The 1st disk is ok.
    When I try to do the 2nd drive, the systems stops exactly 50% of the 2nd drive. and no more reaction from the creator of disc.

    I tried 2 x, and every time I had to give up and throw the dvd.

    any suggestions?

    Hello

    You should try another DVD from different manufacturers
    It s nothing unusual that some DVDs are not totally compatible and CD/DVD players cannot write data correctly
    I had this problem in the past and could solve this test and using different DVD.

  • Bought a HP15 g009AX but can not find a driver for the graphics card

    Hello

    I bought a model of flipkart HP15 g009ax a week, but I can't find any drivers, I istalled Windows 7 64 bit. The problems that I face are below:

    (1) find the driver for the graphics card Ati amd 8570 M cant

    (2) among the three USB ports work alone

    (3) cannot turn down the brightness of the screen

    I tried both links but below its still does not not for me.

    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?OS=4063&LC=en&cc=us&DLC=en&sw_lang=&product=7101...

    and

    www.PCIDatabase.com

    Help, please.

    OK... time to be creative, and I think it will work...

    We will manually install the graphics driver W8.1 your model use.

    Use the following steps to manually install the graphics driver...

    Run this graphics driver W8.1...

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-135683-1&cc=us&DLC=en&LC=en&OS=4158&product=7255430&sw_lang=

    Go to Device Manager and click to expand the category graphics cards.  Click on the VGA Standard card.

    Click on the driver tab, click on set to update driver.  Select her browse my computer for driver software option and navigate to the folder of the driver that was created when you ran the file.

    This file will be located in C:\SWSetup\sp67327.

    Make sure that the include subfolders is selected and the driver should install.

    Reset.

  • Driver for the graphics controller ATI Radeon® 9200

    Driver for the graphics controller ATI Radeon® 9200 for windows 7

    Hello

    read the following answes provided http://social.technet.microsoft.com/Forums/en-US/w7itprohardware/thread/712115f9-9416-42c1-9c7c-53b676692d3c

    Please click the checkbox as replied on this Page if this post solves your problem, as it helps others who need quick access to the answers THANKS AND GOOD LUCK

  • Satellite P200D-128: Toshiba has a Web page for the graphics card drivers?

    Hi I want to update the driver for my card graphics ATI Mobility Radeon 2400HD with the updated driver, Toshiba has a Web page for the graphics card drivers?

    Concerning the best and warm
    Adrian Wainer

    Hello

    All Toshiba drivers for European notebook series can be found on the European driver Toshiba page:

    You can find it here:
    http://EU.computers.Toshiba-Europe.com-> support Download Center &-> Download drivers

    You will find all the latest drivers published by Toshiba

  • Satellite L300D - cannot find the XP driver for the graphics card

    Hello

    I just bought a Toshiba Satellite L300D and I installed Windows XP (instead of vista, which was preinstalled). I can't find the XP driver for the graphics card... Everest recognizes him as ATI RS690M. A download link will send me straight to heaven!

    Thank you in advance,

    Nikos

    PS. of course, I searched the display on the sites of several Toshiba driver and I got this message: "the resource you are looking for has been removed, had its name changed, or is temporarily unavailable."

    After that, I tried the driver from ATI, and it seems that they are more home driver for XP.

  • I get the blue screen in the LR development mode, even though I have updated the driver for the graphics card on this new laptop. It's an AMD Radeon R5 M335 4 GB memory DDR3, core i7 6th gen processor. What should do?

    Hi guys, I get the blue screen in the LR development mode, even though I have updated the driver for the graphics card on this new laptop. It's an AMD Radeon R5 M335 4 GB memory DDR3, core i7 6th gen processor. What should do? Thank you

    This Eizo has a normal resolution of 1920 x 1200 pixels. I expect not to see a lot of benefits of using the GPU. You really see the advantage to screens that are at least 4K (3840 x 2160 pixels) or more. On small screens, you can see some benefits with smoother updates if you ONLY use the base sliders to develop. If you use brushes, turning on the GPU can actually slow you down a bit. In most cases, loading images in develop is also slower when you activated! There are a few illustrative notes to an engineer from Adobe that you can read here: notes for Lightroom CC GPU (2015) in order to better understand what is happening. Currently, in most cases, I recommend leaving off the coast. I think that Adobe is trying to improve and have more cards supported, but it is not yet completely there.

  • Question: How do I assign a TOKEN for the class, field, method in the export file?

    Hi all

    Please take a look at this photo: http://www.flickr.com/photos/25615172@N08/5788551711

    I have a question for you:

    1 / in the export file, what allocation rule of tokens for the classes, fields, methods?

    2 / how, the articulation between * #token_c2.token_f2* and public-> field3 protected class3 ?

    3 / how the articulation between * #token_c2.token_m2* and public-> protected method3 class3 ?

    Thank you
    HoaND

    I am interested in this topic as well and looking for the answer elsewhere. Let me know if you have the answer

  • LineBitmapStyle and drawTriangles not available in the Graphics class methods

    I amwriting an application that uses the graphics class to draw a picture, but I can't access the methods lineBitmapStyle or drawTriangles. they may not appear in the menu of AutoComplete for the Graphics object that I created. On my colleague's machine, these methods appear, makes me think I have a bad file somewhere, I tried using different SDKs (3, 2-4, 0) nothing works.

    Picture 1.png

    Does anyone have any ideas why do they not appear these methods? This link has been the only clue I could find through a google search:


    http://Shigeru-Nakagaki.com/tools/LibMgr/class_methods_in_FP10_RC_but_not_in_FP9.html

    I'm really stuck on this. Any help is greatly appreciated.

    d

    Doug,

    They are only available in Flash Player 10. Flex Builder 3 is designed for Flash Player 9. Therefore specifically tell Flex Builder to target Flash Player 10. Instructions on how to do this are here: http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10

    It is explained elsewhere where on the web might be better. But this is the official Adobe service.

    Thank you

    Philippe

  • Convert tiff to DNG for the option validate

    Hello

    I like the idea to be able to post my photos to avoid problems as little rot when if you use dng format. During the conversion of the library, I would like to convert the tiff files that I have too for the same reasons.

    Is there a reason any I can do to my entire library?

    How manages the conversion layers? I should flatten the TIFF that contain them?

    Thank you

    RP2A03 wrote:

    Hello

    I like the idea to be able to post my photos to avoid problems as little rot when if you use dng format. During the conversion of the library, I would like to convert the tiff files that I have too for the same reasons.

    Is there a reason any I can do to my entire library?

    How manages the conversion layers? I should flatten the TIFF that contain them?

    Thank you

    You lose the layers, stick with TIFF! DNG is a large format, but use it to raw data.

    There are other tools that you can use to validate files for bit rot and other.

    http://BasePath.com/site/detail-ImageVerifier.php

  • Problem of activating Windows 7: for the upgrade product key

    Hi there I had to replace my drive hard when he died, so I installed windows 7 on it instead of upgrade of vista because I never had a vista disk when I bought the laptop, but when I went to turn it on he told me that the key was invalid because it was only for the upgrade.  Is it possible to fix this problem or get a new free activation key since I already paid for the upgrade?

    You can reactivate your Windows 7 installation by doing the following:

    1. click on the Start button and in the box, type search: slui.exe 4

    2. press the Enter key on your keyboard.

    3. Select your country.

    4. follow the instructions for the activation of the telephone (toll-free).

  • First 13 items: problem with transitions and vignettes for the film menu

    I've separated the scenes in my movie with the base transition fade - to-black, which works fine when I choose the centered option. Unfortunately, when using the automatic method of filling thumbnails of scene menu, the result is an all black image of the miniatures of the scene, that the initial image for each scene is completely black.

    I tried to put the transition on the right side of the main element, which solves the problem of thumbnails on the menus of the scene, but the transition is strangely applied - he Faints, but disappears before the end of the clip of the beginning, rather than just black until the end of the first clip.

    Any ideas?

    rptrevor

    When you double click on the menu, you will see an opportunity of 'compensation' 00; 00; 00; 00 in the marker dialog box.

    You can use it to change the thumbnail display corresponding to this menu marker while leaving the menu marker in its mounting location.

    Have you explored this possibility? It works - road tested myself.

    What operating system executes your 13 items first? I ask that in case we need to enter a more specific detail linked

    for the operating system on which to run the Premiere Elements.

    We will follow to your results.

    Thank you.

    RTA

  • Problem of setting a value for the hidden item click on the button with processes action or pl/sql dynamic

    Apex 4.1

    Oracle 11g

    I have a page which consists of a main and several sub-regions area.  I have a pl/sql process in after the header SET_DISPLAY(:P400_DISPLAY:='MAIN';))

    Three subregions have a contional show where P400_DISPLAY = STORE.  It works in the hiding of the sub regions.

    Now, I want to change the value P400_DISPLAY to the STORE to show the subregions when I hit a button.

    I tried to create a dynamic action for the click on the Add button, but get the following error:

    The selected button uses a model of 'button' that does not contain the #BUTTON_ID substitution string #.

    I went to the models and found:

    Substitution strings

    Top

    Substitution strings are used in sub models to reference the value of the components. This report details use of string substitution for this model.
    Substitution string Referenced De Description
    #LINK #.YesModelTo be used in an attribute "href".
    #JAVASCRIPT #.NO.To be used in an "onclick" attribute
    #LABEL #.YesModelButton label
    #BUTTON_ATTRIBUTES #.NO.The attributes button
    #BUTTON_ID #.NO.ID generated button will be ID either the static button if defined, or if not will be a generated ID internally in the format 'B ' | [Internal ID of the button.

    I then tried to create a page process, pl/sql,: P400_DISPLAY: = 'STORE '; If the button is pressed.  The action of the button is submit page. However, it does not change the value of P400_DISPLAY and the subregions are hidden.

    Suggestions please on how to fix the template or change the value of P400_DISPLAY?

    The question of the root, it's that, even if you change the value of the element of your page, it is not visible to other areas of the page until it is in the session. Thus, any other action based on the value of the element of your page. the visibility of a control, a report based on the value of the item, etc. will be affected by changing the value of the item page until it has been changed in the session. Even after that, items are stored in the session, then you must do something to influence the revalued value. To see the effect of this, observe that your page will load and assesses the value of the element of your page, it sees which is the "MAIN" and mask areas. However, he didn't reassess after that.

    Then; your choices for this value set at the session are send the page, or use JavaScript to set the value in the session. If you use the latter, you will have to do extra work to make visibility tests be re - run, so, let's stick with the submit method.

    What you did above sounds correct to do this but, there are a lot of decisions, that you might have done that may have caused things to do not occur in the correct order.

    First of all, we will confirm that what I describe above is your problem. From the development environment, load the page, click on the button to change the value and submit. Now, click on the link marked the Session. He is always at HAND? If the answer is "Yes"; That's your problem.

    Let's start with your calculation after the header. You set it to * only * run if the current value of the element of your page is null? If this isn't the case, it's your problem.

    Load the Page-> Item set to 'Hand' by calculation-> click on the button--> Item set to STORE-> Submit-> Page Load-> point by calculating the value 'hand '.

    See the problem?

    Assuming that's not the question, you have created a branch to the same page, right? What is your process for the branch point? Is it * after * Validation, computation etc.? Because if not, you are not changing the value before that didn't get to submit.

    I bet that's the first question, but take a look at these.

    See you soon,.

    -Joe

  • Problems with deployment of GPOs for the Flash player 10,2,159,1 msi

    Hi all

    I had problems getting 10,2,159,1 msi to deploy via GPO I did all the other versions until this one, which worked well.

    When you add the MSI file to the existing GPO the following error on the server appers "no package in the installation of software in the Active Directory data does meet this criterion.

    This adds the msi to the Group Policy object, but it will not install.

    I tried runing the MSI manually but when installing, msi errors out and don't fail to install flash.

    Server 2008r2 deployment machines XP SP3 and win 7 pro.

    Deploy only IE active x file being used 'install_flash_player_10_active_x.msi '.

    Anyone else having this problem?

    Thank you very much

    Richard

    Sorry for the delay, it was ultimately a problem with our communication server not correctly when the Group Policy object creation took place.

    Also, after the new version of Flash in this version, it's the previous version that caused this error.

    You must run restart flash removal tool, run flash removal too new and then install the new version of flash by either EXE or MSI.

Maybe you are looking for

  • Prepare the numbers of "time".

    Hello, I have a formula that creates a number of seconds. Say that the result is 17940. If I set the Format of data as the length, formatting jumps to automatic. Time doesn't seem to work on formulas. I know that if I enter the cell as 17490 s going

  • Partition in gray and cannot mount/erase, help!

    So I used to have bootcamp on my macbook pro, until there was some kind of issue that made me delete, or so I thought. So today after clearing my computer out of the way of bootcamp, I started bootcamp and was greeted by a message saying "The startup

  • Whenever I click on a link, it opens a new window when it is just suppost to open in the same window.

    It started recently and all the other suggestions do not work. So I will try to get a solution more up-to-date for this problem please help.

  • Domain users cannot change the password with Server 2003 SP1

    Hello community, I use a Server 2003 SP1 as a domain controller.  Now we have implemented group policy which is the default value now some users when you are prompted to spend there the password are able to go through the process of implementation of

  • Can I lock Sticky Notes?

    I'm a big fan of the use of reminder to keep my schedule in order, but when I start windows it has chances of my reminder being scattered all over my office. So I would like to know if it is possible to lock the position of Post-it notes. Thanks in a