PNG blank when I try to take a screenshot of my application

Hello

I used this code example to add a feature to 'take screenshot' my application:
http://supportforums.BlackBerry.com/T5/Java-development/capture-and-save-a-screen-shot/Ta-p/445212

But every time that I test, it creates a file Blank.png.

I tried a lot of different combinations, tried to put the class and the function in another file, call the functions of different parts of the code, but nothing seems to happen.

I use the VGField class, do you think that this could be the problem?
What other options I have to take a screenshot?

Thanks to you all!

I may be wrong here, but I think that if you take a page and user has not authorized your application for the screenshots, you will get an empty Bitmap and the user will be prompted to enable it.  the following screen shot will work, assuming that the user allowed him and only him is not asked again.  So try to do it twice!

Your code work on the Simulator?

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Why not list not refresh?

    Sometimes the email list when I go from one folder to the other fails to refresh. If I move the mouse on the list in the new folder will update it but not always completely.Figure 1 shows the displayed e-mail CAD folder BUT the "Input" folder below i

  • Where is the button of my video download Youtube add on?

    Some time (one year or more) ago, I installed a Youtube, download video add on.(In previous versions of Firefox) it has a download button specific you could push to select and start downloading a video. This button is somehow disappeared (I guess tha

  • Error 2013 CVI: the compiler has run out of memory.

    Hello I get this error in a source file, I want to debug: 1, 1 Error: The compiler has run out of memory. 1, 1 Note: You may be able to work around the problem: 1, 1 A. Set the debugging level to 'no run-time checking'. 1, 1 B. Split your source file

  • «Location is not available ~ access denied»

    When I try to open a variety of files in Windows Vista using the offers, I get the followiong: ' there is no location ~ access denied»  This occurs when you try to open the following files only: data of the Application;  Cookies; Local settings; My D

  • Captivate 8: captioning covered by the PlayBar

    Not doing anything fancy here.I have a project imported from PowerPoint with slide notes I've marked for captioning. I'm using the default playback bar. The project size is 1200 X 900.When I saw it, it reads as follows:How can I fix this? Thank you!