Copy a screenshot in a Bitmap image does not work on a device

I have developed a program that creates a Bitmap and copys a screenshot inside.

This works on the 8820 Simulator, but not on firmware 8820 4.5.0.37.

It throws the exception on the device. I think I need to know what kind of Bitmap must be created before you take the screenshot. There's a Constuctor Bitmap with a type parameter. Do I need to use it to create the correct Bitmap?

Following is the screenshot:

Bitmap TheBitMap = new Bitmap (Display.getWidth (), Display.getHeight ());
Display.screenshot (theBitMap);

Thank you Jürgen

I rebooted the BlackBerry, deleted and reinstalled the application.

Then the Exception disappears so the problem just magically disappeared.

Tags: BlackBerry Developers

Similar Questions

  • The right click "rotation" clock or function in a clockwise direction counter on my images does not work

    The right click "rotation" clock or function in a clockwise direction counter on my images does not work
    There is a range of adjustment that may be messed up?

    You are under Win XP and the display of photos with Windows Picture and Fax Viewer?

    Explain what you mean when you say "does not" you receive an error?

    The following command will force a reinstall of Windows Picture and Fax Viewer and can be worth a try:

    Reach... Start / run... and type
    (or copy and paste):

    regsvr32 /i shimgvw.dll

    (Yes, the space after the 2 and the)
    After the i is necessary)

    Press on... Come in...

    You should see a dialog box stating:
    DllRegisterServer and DllInstall in successful shimgvw.dll

  • How to copy and paste into the search engine does not work?

    How to copy and paste into the search engine does not work?

    It should be.

    Restart your Mac and try again.

    Other than that, make sure that OS X is updated.

    Open the App Store, and then select the updates menu.

  • Cannot set the restore point with the error "The Volume Shadow Copy service used by the system restore does not work."

    Cannot set the restore point with the error "The Volume Shadow Copy service used by the system restore does not work."  How can this be repaired?

    Hi rebick,.

    Try the troubleshooting steps presented by spirit X in this thread.

    Dena
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I have a hp m175nw printer. email prints from my iphone, but the image does not work

    M175nw printer. email prints from my iphone, but the image does not work

    If the DPI (dots per inch) is less than 100, the printer will not print the photo because it would be too low in quality. Draw the image on the computer, then right-click on it and click Properties, check the horizontal and vertical dpi and see if these figures are less than 100. Have you tried to connect the iPhone to the same network as the printer and try to AirPrint peak? AirPrint road doesn't have the same requirements on IPR as the ePrint.

  • The function ' copy to ' in folio Builder... does not work

    So it would appear that the function "copy to" in folio Builder... does not work,... it DOES well, but when you try and publish the folio, it errors saying there is an article in your folio is the bad resolution for the folio...

    What a bore... ! I thought I'd hit goldust to my retina display folio. :-(

    A strange thing about the feature copy, it's that you can use to add any item to any folio. For example, you can add an article to the iPhone to an iPad folio, but you will end up having to delete this article if you want to preview or publish. In your case, it seems that you've added an article from 1024 x 768 to a folio of 2048 x 1536.

    Using the function "Add" is not an effective method for creating applications. I recommend that you configure your files to import. See the following article:

    http://helpx.Adobe.com/Digital-Publishing-Suite/help/structuring-folders-imported-articles .html

  • Cannot install Minewsweeper - this app does not work on your device

    Recently I updated the day of Windows 7 Professional x 64 for Windows 8 Pro x 64, so I tried to install the Minesweeper in Windows Marketplace 8, I received the error "Sorry, this app does not work on your device."

    While I install other pretty good games, including Mahjong MS and MS Solitaire, I wonder what the problem is with the windows due to the problem... Thank you.
    PC configuration: 4 GB of RAM, Intel Core 2 Duo E6420, 640GO HDD with 166 GB free on drive C.
    Thank you.

    Hi Alexander,.

    It seems that you have a hard time with the installation of Windows game. We need more information to help you in a better way.

    1. you are using a third-party antivirus?

    2. you did it of any hardware or software changes?

    3. is the question confined to the Minesweeper?

    Here are a few methods, we can try to solve the problem with the installation of apps...

    Method 1: Download and run the troubleshooter modern UI App and check.

    http://download.Microsoft.com/download/F/2/4/F24D0C03-4181-4E5B-A23B-5C3A6B5974E3/apps.diagcab

     

    Method 2: Please follow the troubleshooting steps in the link below.

    http://Windows.Microsoft.com/en-in/Windows-8/why-find-install-app-Windows-store

     

    Method 3: check if the region is correct. Follow the steps mentioned.

    a. type 'region' on the start screen. Click on 'settings', and then press ENTER.

    b. on the "Format" tab, select "English (United Kingdom).

    c. click 'Preferences of languages' > 'add language' and add 'your language'.

    d. Once added, select it and click "move up" to make it the first language. Close the window of the language.

    e. in the 'region' window, click on "other settings" and check if the values are the same.

    f. click the "location" tab and change the location of the home to "your country" and then click OK.

    Method 4: temporarily disable the antivirus and check if that helps.

    a. press Windows + X, click on Control Panel.

    b. click on programs and features.

    c. right-click on the Antivirus system.

    d. click disable.

    Important note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    I hope this helps. Please get back to us if you have any other questions. We are here to help you.

  • BlackBerry Smartphones Whatsapp does not work on my device.

    Hello

    WhatsApp does not work on my device. service of Vodafone gave their best to fix this to the top of their end & the Application is very good but the Blackberry is the villan that not allowing non-http. Please help on this.

    Your welcome.

    Note that your use of the BlackBerry 9720, it will take the right plan BIS in order to work properly with internet, because everything is secure, unlike all other devices (apple, android and winmo)
    However, 10 BlackBerry won't the base BIS subscription anymore.

    You might want to consider this as well.

  • OCR does not work on mobile devices after the update. How can I make it work?

    Ocr does not work on mobile devices after the update. How can I make it work?

    Hello

    Acrobat Reader mobile apps (for iOS, Android, Windows Phone) is the free PDF viewers. They don't support OCR (Optical Character Recognition).

    However, you can purchase the subscription online service called Adobe export to PDF and use it in mobile applications of Acrobat Reader to convert PDF documents to other formats (e.g. Microsoft Word, Excel, PowerPoint).

    Have you already bought the Adobe online subscription service export to PDF?  Would make sure that you're signed in with your Adobe ID to use the service?

  • Why deletion of images of iPhone 4, iOS 7.1.2 with Capture of Image does not work?

    Using the key delete does not work and selecting 'Remove' in the edition menu is grayed out.

    Hi Varoop13,

    Thank you for using communities Support from Apple! I'm sorry to hear that you're having these problems with your iPhone and Capture of Image. I'm a little unclear on exactly which version of Mac OS X you are using or what you see in the Image Capture, but you may want to look for a button with a circle-slash () icon; It's recent releases how Capture of image mark the delete key. It will be active when one or more images have been selected. It is also a behavior whereas the keyboard delete key will not remove the images selected, and that the delete option under the Edit menu stay grayed out. You can see some of these options, it is stated in the following article:

    Use the buttons at the bottom of the window to Capture of Image to display thumbnails in a list () or to display larger thumbnails (), or to rotate () or delete () images.

    Transfer pictures - Image Capture help

    Concerning

  • robolabatceeo, College, tutorials, image does not work

    http://130.64.87.22/robolabatceeo/College/tutorials/image_cli/index.htm

    Does not work. It comes
    the thumb instead of VisionCamera. Being a classic example of deferred content,.
    I was never able to copy it. I need this bad. Can someone suggest an alternative?
    http://tomlohre.com/LEGO.htm

    http://www.CEEO.Tufts.edu/robolabatceeo/College/tutorials/image_cli/

    has all the information. Thanks to all those who keep these available resources.

  • Vision Inspection Builder 3.6 calibrate Image does not work

    I use a camera, NI 1722, with the Vision Builder AI 3.6 software to read 2D data matrix code.

    Unfortunatlly the camera can be mounted directly on the code, its at an angle of about 20 °.

    The step of "Reading data matrix Code" works very well, however we don't always not the classification "nonuniformity Axial.

    I want to calibrate the image to adjust the view. To do this, I find the 4 edges of my matrix Code, then 4 intersections of the edges (ie the corners)

    I know that my matrix code is a square 9x9mm. So, I use the Image step calibrate to account for this.

    It works very well in "Setup" Mode, when I run individual State.

    However when I run the Inspection, step to calibrate Image still fails and is not calibrate the image.

    Please find enclosed pictures of file and the example of the vbai.

    After trying many different things, I later upgraded to VB AI 2009 SP1

    Yet once after many different configuration etc, I finally solved the problem.

    (1) with VB AI 2009, if you apply calibtation to a step to acquire images, it will always fail!

    I don't know why this option is there (maybe it works with different cameras)

    (2) you must use "Select an Image" step between steps acquire Image and the Image calibrate.

    Calibrate the Image does not seem to use the last Image acquired in the State

  • I can't locate any button screenshot on my internet explore and screenshot on my keyboard button does not work, how do I use my print screen?

    Im trying to print the screen turned on a facebook account and I can't find a button print screen on my toolbars and my screenshot key is not work anymore. I also tried to use FN + Insert and its does not work.

    Hello


    1. what operating system is installed on the computer?
    2. were there any changes (hardware or software) to the computer before the show?

    Method 1: try the keyboard on the screen and see if the problem persists.
    http://Windows.Microsoft.com/en-us/Windows7/type-without-using-the-keyboard-on-screen-keyboard

    Method 2: If the problem persists, you should contact the keyboard manufacturer for assistance.
     
    Hope this information helps.
  • Need urgent HELP! Ramdom images does not work

    Hello. I'm trying to use the Kaosweaver.com extension to create a Ramdon Image on a page, that I am working on but nothing helped. When I try the extension of dynamic Images it does not either. Any suggestions?
    I'm getting "BOLD" pulling my hair out in despair. Help please!

    Contact the author (Paul Davis). Make sure that you give explicit details
    everything you did and what does not work.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "Zorrrro" wrote in message
    News:g656n5$LLR$1@forums. Macromedia.com...
    > Hi there. I am using the Kaosweaver.com extension to create a Ramdon
    > Image
    > effect on a page, I'm working on but nothing works. When I try the dynamics
    > Images
    > extension it does not work either. Any suggestions?
    > I get "BOLD" pulling my hair out in despair. Help please!
    >

  • HP revolve 810 G1, Windows 8.1, screen auto-rotation of images does not work

    I'm sure I can't be alone in having improved my G1 810 turn Windows 8.1.  However it is therefore more useful tablet as the rotation of the screen does not work.  The auto spin button does nothing and after an HP engineer swapped botht huh card system and the button they said that the only option is to return to Windows 8 (original shipping OS).

    Really, this isn't a usable solution when you want the new features of Windows 8.1 update.

    My G1 of 900 ElitePad works well on Windows 8.1.

    Can it really be difficult to get the drivers right and tested?

    Someone at - it a Windows 8.1 working solution?

    Hello

    decommissioning of the Bios to F.44 and auto-rotation should work again (for me it worked).

    I found this working solution myself, HP could not help me anyway.

    Be aware, that the Bios F.44 didn't put heat-settings update as F.47, so you'll have a noisy fan

    HP couldn't tell me when there will be updates of Bios or drivers updated.

    to ensure that automatic rotation is also running Windows 8.1.

    Hope this information helps you...

    Kind regards

    Alex

Maybe you are looking for