Bitmap.getBitmapResource (...) does not find my file?

Hi all, I'm a 1st year student at the University of Warwick (United Kingdom) and I'm writing a small application for the Blackberry Storm, but I can't get my code to use just...

Bitmap image = Bitmap.getBitmapResource ("c.gif");

BitmapField bField = new BitmapField (image, BitmapField.FOCUSABLE);

Add (bField);

if(image == null) {Add (new RichTextField ("zero!")) ;}

^^ the snippet above is what I wrote, as far as I can see it is all very well, and the c.gif file is in the same directory as the source .java code when I Isaiah to compile the project (in the RIM JDE)

When I run my app in the Simulator, rather than the displayed image, I just get "null!" printed...

I don't know I'm just something dumb/obvious but I tried to move the .gif to different folders, but I can't make it work

Thanks for reading this,

Harri

You have added the file to the project?

Tags: BlackBerry Developers

Similar Questions

  • I can't access firefox, everytime I try I get that windows does not find the file, I tried it redownloading but he still gave me the same message?

    I can't access firefox, everytime I try I get that windows does not find the file, I tried to download again, but he still gave me the same message. the problem has nothing to do with my internet because it freaks on the internet explore and everythign is fine, just my computer can not access firefox for some reason any. I tried uninstallign it and then install again, but that did not work, I tried to install a different version and it still doesn't work.

    yesterday

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; MSDigitalLocker; FunWebProducts; GTB6; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; OfficeLiveConnector.1.3; OfficeLivePatch.0.0 .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

    I'm sorry, but you have not answered my questions.

    (1) on the last stage Setup lets you start Firefox, if you keep all of the checkbox "Launch Firefox now", turns on Firefox when you click on "Finish"?

    (2) how did you launch Firefox when you receive the error message? How do you 'by clicking on the freshly installed target Firefox.exe?

    (3) what is the exact error message? (Post a screenshot if you cannot re-type precisely). Text you have posted it lacks an ending quotation mark and does not resemble any message I know.

  • Windows 7: the search does not find the files that should be, directory is indexed and *.php included on the list of extensions

    Windows 7: search does not find the files that should be. I have indexed directory and *.php included on the list of extensions, but search can't find files for Word searches that I know there are files with these words in them.

    If you're frustrated by research (aka Desktop Search), you are not alone. Click the Start button and type find and click the button 'change the way Windows search'. Now click on the Advanced button and select the tab file types scroll down and find your type of file (in your case .php) and make sure the radio button "index properties and the content of the file" is selected for the file type.

    Out the form by clicking on the OK button, but do not close the form when you click the Advanced button.

    Then, you may need to change the indexing locations. If the folder where your files are located is not known for indexing search, then search is not even bother looking for here (a source of frustration for many users). Maybe your files are located on another drive or partition without the knowledge of the indexing engine. Using the options icon and select/deselect expand, make sure that at least the files of interest are included for the indexed locations. I hope this helps.

    samc1

  • When I want to download the trial version of the CC, creative cloud does not find the file. Always seek

    When I want to download the trial version of the CC, creative cloud does not find the file. Looking, what should I do?

    Hi clemdef,

    Change your browser and try again. Please see the Ko: http://helpx.adobe.com/creative-cloud/kb/troubleshoot-cc-installation-download.html for download issues.

    You can even try the direct download: http://prodesigntools.com/adobe-cc-direct-download-links.html .

    Please follow the very important instructions before downloading.

    Kind regards

    Romit Sinha

  • The search in Windows Explorer has stopped working properly - it does not find the files which are there, but will find other files that match the search criteria

    Window 7

    Was working before, but have only allowed a number of updates to Windows that had been blocked for a while.

    For example. Type 'safe' in the search box. It finds files and directories with 'security' in the title, but not the files and directories that I can see are there with 'safe' in the title.

    When I search using the "safe * ' it seems to do exactly the same thing as"safe ".  It does not show only files beginning with 'safe'

    My suggestion was not ' safe * ' but ' name of the file: ~ safe * "(without the quotes).

  • Siri does not find the files on my external drives

    Hiya:

    Just updated to Sierra of MacOS and I try to use Siri to search for files on my computer and as the title suggests, Siri spitting not files on my external drives (both connected via USB 3 on the back of the iMac). I tried to turn on Siri/off, Spotlight is not all excluded files, I tried signing in/out of my iCloud account. I tried to create a new user account on my Mac (which will not find anything). Permissions on my external hard drive seem ok: read/write is enabled for me, all the world and admin; "ignore permissions" is turned on.

    I'm starting to think that this is a design limitation of the software. Someone else using Siri able to search for files on your external hard drives?

    As near as I can tell, unlike the Finder and Spotlight, search Siri does not check for external drives.

  • Skype does not find the files

    HI HI.

    Long story (involving me accidentally delete reg files and the antivirus does not let me use restoration system to fix, all fixed now and not involved with topical issues), had barely get reinstalled Skype.

    However, in the end I used Lessmsi approach and extract the files. Out in a subfolder that I created for her, but I went back to "C:\Program Files (x 86) \Skype\Phone.

    I tried to run "Skype.exe" and gave me an error 2, file not found. Excerpt from everything, I tried again, same error.

    Any ideas?

    Running Windows 7

    Restart your computer in Safe Mode with network and then try to start Skype.

  • I get the message 'c:\users\AppData\Local\Temp\7zS448\Setup does not find this file"while trying to install the printer driver

    Original title: \users\AppData\Local\Temp\7zS448\Setup

    I get the message, "cannot find this file" it displays the file in the tool bar, c:\users\AppData\Local\Temp\7zS448\Setup. This happens when I try to install the driver for my HP PhotosmartC3150 on my laptop HP Pavilion with Windows 7. When I click ok, the installation stops. Doesw anyone have suggestions?

    Thank you.

    Hello

    Welcome to the community of Microsoft and thanks for posting the question. I've surely you will help find a solution on the issue.

    Method 1:

    Unnecessary files on your hard drive, disk space and can slow down your computer. Disk Cleanup removes temporary files, empty the Recycle Bin, and removes a variety of file system and other items that you no longer need.

    Delete files using disk cleanup

    Try to install the driver now.

    Method 2:

    Step 1: Clean boot

    Put the clean boot computer and try to install the driver.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: Once you are done with the boot, follow step 3 in the article by putting your computer to normal startup.

    Step 2:

    You can download the drivers in the article below:

    http://h20000.www2.HP.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=1146516&prodTypeId=18972&prodSeriesId=1146511&swLang=8&TaskID=135&swEnvOID=4063

    Method 3:

    If you are unable to install the driver, I suggest you to run the Fixit provided prior to installation.

    Solve problems with programs that cannot be installed or uninstalled

    http://support.Microsoft.com/mats/program_install_and_uninstall

    Hope this information helps. Please reply with the status so that we can help you.

  • I had received a record of failure of a file error message and when I tried to follow measures to correct by adjustment files he told me that the system does not find the files

    I got the error message, shortly after I upgraded to service pack 2 windows xp with service pack 3.  When I try to start in safe mode or in an earlier era, the computer stops at the 32\drivers\mup.sys system.  Then it goes to the blue screen which gives me the error message of failure of a registry file and begins to clear the physical memory on the disk.

    And what happens when you try to start in Normal Mode?

    Have a HP or Compaq PC? If Yes, read on:
    If not, let us know. Also, have you tried install SP3 with an antivirus running on board? (That's a no-no!)
  • Sony music and album app does not find the files on the device,

    Like new the music app Sony Z5 found all the music on my SD card

    I downloaded now more through music amazon app, but they do not appear in the app sony music. Any ideas how to get new music appears in the application Sony Music?

    Never had this problem with my Xperia Z

    Thank you

    Hello

    I have tired a few things and understand the problem - it's the Amazon app

    1. I opened Commander file and could see the files, but they are stored in a different folder of Android/data/com.amazon.mp3/files/Music. I copied the files in the folder media/Android/media /, then the files are repeatedly maximum and so that works.

    2. / android/data/a a .nomedia file that I deleted, but the file is restored back automatically

    Technically the Amazon app should store the files in/Android/media, but is not

  • Using the search sometimes does not find the file extension (for example .pub) files

    I'll try to find some editor 'lost' 97 files on my system (looking for * .pub).  I tried searching and advanced without success, even when research fron "C:".

    I checked '.pub' files are included in the list of indexing.

    I created a '.pub' file and still get a result draw.

    I re-indexed all my files.

    Always get a result zero

    If I have a file ".doc" or ".wps" then it works OK

    Help!

    Greetings - Alan McDonald

    If you want to search everywhere for all pub files
     
    Type in a command prompt ((type of command in the area of research of departure then turn right
    Click and choose Run as administrator)
     
     
    dir /a /s c:\*.pub | more
     
     
    --
    ..
    --
    "Alan McDonald" wrote in message
    News: 3d9958f7-2f75-47 2-980f-20c84d051fa1...
    > I'm trying to find some editor 'lost' 97 files on my system (responsible for research
    (> for * .pub). I tried search and research advanced without success, even
    > when searching fron "C:".
    >
    > I checked '.pub' files are included in the list of indexing.
    >
    > I created a '.pub' file and still get a result draw.
    >
    > I have re-indexed all my files.
    >
    > Always get a result zero
    >
    > If I have a file ".doc" or ".wps" it works OK
    >
    > HELP!
    >
    > Greetings - Alan McDonald
    >
     
     
  • Why my lightroom does not find my file unless my camera card is in the card reader

    I imported the photos from my camera card and created a collection.  I then remove my the USB card reader.  When I try to edit photos in lightroom, it says "file is not found."  It is the folder if I set my camera card in.  It seems that my collections are stored on the card in my camera (is this possible?), but I don't know how this could happen or how to fix it. Help?

    HI Robert,.

    It seems that when you imported the images from the card you added in the catalog instead of making a copy. in the window at the top import, we have the option 'copy as dng', 'copy' , 'move', 'Add '.

    choose copy, and then on the right, we will get the destination Panel. in which we can choose the destination in which we have to copy the images from the card.

    Thank you

  • openScript and jfsl openDocument does not find a file while there are

    I have C:\flash\FlashApplication1\FlashApplication1\FlashApplication1.as

    package {}

    import flash.display. *;

    SerializableAttribute public class FlashApplication1 extends MovieClip {}

    public void FlashApplication1() {}
    Super();
    }
    }
    }

    and C:\flash\FlashApplication1\FlashApplication1\bin\Debug\FlashApplication1.jsfl

    var uri = "file:///C:/flash/FlashApplication1/FlashApplication1/FlashApplication1.as";
    var swf = uri.substr (0, uri.length - 4) + ".swf";
    var target = "file:///C:/flash/FlashApplication1/FlashApplication1/bin/Debug/FlashApplication1.swf";
    var doc = fl.openDocument (uri);
    fl.compilerErrors.clear ();
    doc. Publish();
    If (FLfile.exists (swf)) {}
    If (FLfile.exists (target)) {}
    FLfile.remove (target);
    }
    FLfile.copy (swf, target);
    FLfile.remove (swf);
    }
    fl.compilerErrors.save ("queue: / / / C:/flash/FlashApplication1/FlashApplication1/bin/Debug/Fl ashApplication1.err'");
    FLfile.write ("file: / / / C:/flash/FlashApplication1/FlashApplication1/bin/Debug/FlashApplica tion1.amethyst', 'done'");


    When you run jfsl in flash command run it says it can't find file:///C:/flash/FlashApplication1/FlashApplication1/FlashApplication1.as on the 7 line (var doc = fl.openDocument (uri);) while there is at this location. Do you see why and how to remedy?

    I looked at the official doc on openDocument
    http://help.Adobe.com/en_US/Flash/10.0_ExtendingFlash/WS5b3ccc516d4fbf351e63e3d118a9024f3f-7b97.html

    It shows a weird path syntax:

    var doc = fl.openDocument("file:///c|/Document.fla");

    I tried to use file:///c| instead of file:///c: but it didn't work either.

    I also tried openScript, and it didn't work either too.

    put a test file on the root of c and access.  Then put the test file in c:\flash.  then in c:\flash\FlashApplication1 etc.

  • Surface does not find my file even though I've matched

    Separated from this thread.

    When I add device my Surface do find anything, even though I've already associated with them. Now what?

    Hello

    Thanks for posting your concern here at the Microsoft Community forum. Let me help you with your concern.

    There could be problems with the settings or the Bluetooth drivers, where you might face this problem. Follow the steps in this Microsoft article troubleshooting and check if that helps.

    Troubleshoot Bluetooth devices

    http://www.Microsoft.com/surface/en-us/support/hardware-and-drivers/troubleshoot-Bluetooth-devices

    I hope this helps. If you need help with Windows, let us know and will be happy to help you.

  • Backup has encountered a problem during backup of the C:\windows\system32\config\systemprofile\Desktop\music file. Error: (System does not find the specified path. (0 x 80070003))

    I had to uninstall iTunes a few months ago and successfully re-installed, but part of my music was missing.   At one point, following the instructions on a thread on the forums Apple or Microsoft, I saved my music library on the desktop. Since then, I do not have a library of music on the desktop file.  In my looooooong hours trying to fix things, I do not know if I deleted it or what.

    Now, I get the message:

    "Backup has encountered a problem during backup of the C:\windows\system32\config\systemprofile\Desktop\music file. Error: (System does not find the specified path. (0 x 8007003)) "whenever I have backup my computer.

    As I understand it, that does not affect really any other files, they rely on the spot (I think), but

    HOW CAN I GET RID OF THIS MESSAGE? or what is the cause?  Of course, I could use help in simple English, step by step, as I'm not very techno...

    Thank you!!!

    Try to be...

    SereneJulie

    Hi serene,

    Thanks for posting your query on the Microsoft Community.

    As indicated by the error, this problem appears, when these files/libraries that are saved automatically are not present on your computer. I suggest you to follow the steps below and check, if it can help solve the problem.

    • Create missing files that are listed in the error message.
    • Exclude files from the files to backup in the backup settings and then include these files in their original location. To exclude folders in other communities and to include these files in the original location, follow these steps:
      1. In Control Panel, open backup and restore.
      2. In the section back up , click change settings.
      3. In the dialog box Configure the backup , click Next.
      4. In the dialog box that you want to save , click Let me choose, and then click Next.
      5. Expand data files, library, expand additional locations, and then click to clear the check boxes folder AppData, Contactsand Research .
      6. Expand computers, expand the element of your system drive (for example, expand Local disk (c)), expand users, , and then click to select the checkboxes AppData, Contactsand Research if they exist.
      7. Click Next, and then click Save settings and exit.
      8. Backup and restore, click back up now to perform a new backup. The backup operation must complete without errors.

    If the problem persists, I suggest you follow the steps in the following article for troubleshooting backup problems.

    Windows backup or restore 0 x 80070001, 0 x 81000037 or 0 x 80070003 errors

    http://support.Microsoft.com/kb/973455/en-us

    Come back and let us know the State of the question, we will be happy to help you. We, at tender Microsoft to excellence.

Maybe you are looking for

  • No chapters after compressor export?

    Hi people, I'm editing old family 16mm film to a customer in a SD NTSC file. The file is modified with several chapters (16 or almost) fully finished. I exported a file of format prores FCX.  I'm doing this because I also give customers a larger file

  • Problems of Netflix on my Toshiba TV

    OK, so. When I watch netflix on my smart TV, I watch for an hour or two and then it crashes.I try to reload but then it crashes again, in this case PLAY MID. So I turn my tv market... to reconnect to the internet again - but then when I load my TV up

  • X120e and itunes

    I am looking to buy the x120e with chip E-240 and 1 Gig ram will can it run smooth itunes? (goes to increase the ram at a later date)

  • Best practices to write objects to files

    Hello What is the way to recommend to objects from/to a file read/write? Is there something equivalent to an ObjectOutputStream in the BlackBerry API? I currently use 4.6.0 simulating on a "BOLD". Thank you

  • How to get the graphic equalizer to stay at the bottom of the screen is on-air on media player 12. ?

    I can't get the graphic equalizer to stay at the bottom of the screen is on the air. I am not able to move from the improvement.