Display.screenshot (bitmap) returns white screen

Hi all

I develop an application that uses the camera (VideoControl and player).

Here I am pasting my code

String encoding = "encoding = video/3gpp & mode = standard;
_player = Manager.createPlayer ("capture://video?" + coding);
_player. Realize();

_videoControl = (VideoControl) _player.getControl ("VideoControl");
If (_videoControl! = null) {}
Field videoField = _videoControl.initDisplayMode (Field) (VideoControl.USE_GUI_PRIMITIVE, "net.rim.device.api.ui.Field");
Add (videoField);
btnStart = new ButtonField ("Get Snap", ButtonField.CONSUME_CLICK |) ButtonField.FIELD_HCENTER);
Add (btnStart);
_videoControl.setVisible (true);
btnStart.setChangeListener (this);
_player. Start();
}

On the click event of a btnStart buutonField I call it

public void fieldChanged (field field, int x) {}
Bitmap bmp = null;
VerticalFieldManager vfmMain = new VerticalFieldManager)
VerticalFieldManager.VERTICAL_SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR);
While (snapCounter< 20)="">
BMP = new Bitmap (Display.getWidth (), Display.getHeight ());
Display.screenshot (BMP);
vfmMain.add (new BitmapField (bmp));
BMP = null;
snapCounter ++;
Thread.Sleep (100);
}
}

bitmap HE I includes the pictures seen in the camera too.

But it works fine when I run the application for the first tiem after installing it in the appliance.  When I get out the request and re-launch it he gives screen but without the camera images.  I want the image with the images of the camera.

Please, someone knows why it's happening. And is there a solution for this.

Thank you

For this best prectice is to use the playerListener and overrride method.

' Public Sub playerUpdate (player pl, event of the string, eventData object) {}
try {}
I have if (event.equals (PlayerListener.STOPPED)) {}
close the player
_player. DEALLOCATE();
_player. Close();
} else {if (event.equals (PlayerListener.CLOSED))
write your meeting
}
}
} catch (Exception ex) {}
System.out.println ("playerUpdate Exception" + ex.toString ());
}
}

This works well.

Now whenever it gives the page... with video...

Tags: BlackBerry Developers

Similar Questions

  • Cannot undo changes to display because of the white screen

    Laptop Lenovo G510; Windows 7

    I'm trying to set up the laptop to an external monitor via HDMI. I tried a setting, but it didn't work. However, the laptop screen went white and now I can't undo the changes.

    Upon restart, the screen works up until the start of window screen, and then it turns off as the computer continues to boot.

    Start in safe mode works, but I can't access the properties of the graphics from there.

    Tried to unplug the HDMI cable, but does not help.

    How can I report the default display settings without doing a hard reset? (It isn't my own computer)

    Ok. I solved the problem by returning to a previous restore point.

  • my yahoo home page search bar returns a screen space - as if I go on a site search (bing) there also, white screen returns

    all searches return white screen. show address bar it goes on the search site (search.avg.com/***) and does nothing.

    solved. Webroot sure anywhere is our program of viruses and malware. It offers a framework to analyze the results of the search engines. When this option is turned off, everything works fine. Thanks for the suggestions.

  • Upcoming context menu in the screenshot using Display.Screenshot

    Hi all

    I have a Menu item. When click on that I take screenshot, but I also get the context menu in the screenshot. I want only the screenshot to the screen behind the context menu.

    Pointers for this?

    Thanks in advance,

    Sandeep

    Thanks for you answers.

    I tried to have the timer also option to wait for a while before taking screenshot didn't work.

    Then I tried after option, it worked. I've added a call to repaint before taking a screenshot. Is this a good method to do?

    // Added this line before taking screenshot UiApplication.getUiApplication().repaint();
    Display.screenshot(bitmap,0,0,Display.getWidth(),Display.getHeight());
    

    I'll also explore the options mentioned by you.

    Thank you

    Sandeep

  • Interior canvas full screen white screen returns

    The following code gives me a white screen:

    class gameScreen extends FullScreen {
    
      Graphics graphics;  rimSprite hero;
    
      public gameScreen() {    super(Screen.USE_ALL_HEIGHT | Screen.USE_ALL_WIDTH);    System.out.println(">>>>> Gamescreen loading...");    graphics = getGraphics();    graphics.setBackgroundColor(Color.BLUE);    graphics.drawText("test", 40, 40);    try {      hero = new rimSprite("img/player.gif", 1, 20, 20, 20);      hero.setFrame(3);      hero.paint(graphics);    } catch (Exception e) {      System.out.println(">>>>> Message was: " + e.getMessage());    }    paint(graphics);    System.out.println(">>>>> Gamescreen loaded.");  }}
    

    And I don't see why... I try to paint the screen but somehow, I get a white screen.

    I've found a few discussions with the same problem as mine... enlighten me please!

    Are you trying to push a screen on which you can paint the bitmap images and other things.

    If Yes, then let me give you an example how you can do it.

    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.container.FullScreen;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.system.Display;
    
    class Main extends UiApplication
    {
        public  Main()
        {
            super();
            PaintScreen paintScreen = new PaintScreen();
            pushScreen(paintScreen);
        }
        public static void main(String[] args)
        {
            Main main  = new Main();
            main.enterEventDispatcher();
        }
    
        public class PaintScreen extends FullScreen
        {
            public PaintScreen()
            {
                super();
                paintSomething();
            }
    
            public void paintSomething()
            {
                UiApplication.getUiApplication().invokeLater(new Runnable()
                {
                    public void run()
                    {
                        draw();
    
                    }//end of run()
                });//end of runnable()
            }
    
            public void draw()
            {
                Graphics graphics = this.getGraphics();
                int w = Display.getWidth();
                int h = Display.getHeight();
    
                graphics.setColor(0x00000000);
                graphics.fillRect(0, 0, w/2, h/2);
    
                graphics.setColor(0x00FF0000);
                graphics.fillRect(w/2, 0, w/2, h/2);
    
                graphics.setColor(0x0000FF00);
                graphics.fillRect(0, h/2, w/2, h/2);
    
                graphics.setColor(0x000000FF);
                graphics.fillRect(w/2, h/2, w/2, h/2);
    
                this.updateDisplay();
            }
            public boolean onClose()
            {
                this.close();
                return true;
            }
        }
    } 
    

    Concerning

    Bika

  • When white screen no display available

    I have a laptop. And I did left on so I can access it whenever I need a common practice. But I would also like to turn off the display of the cover and the only way to do is to close the lid, which is fine because I disabled the auto sleep function. The problem is that when access is the computer through the connection distance and open Firefox, all I see is a white screen. now, first of all, we think it's the remote tool. I already proved that this is the case. See Firefox on a remote connection, all I have to do is open the lid so that the view can reactivate or plug in an external display valid to see Firefox. A screenshot from the computer to the remote console also shows that Firefox is just a white screen. Any help on this is much appreciated.

    Using hardware acceleration means that Firefox uses the GPU instead of the CPU to perform certain operations and that you will not notice any effect on the performance of Firefox if hardware acceleration is disabled.

  • Open a new file in photoshopcc and the name of the file is displayed but no Web white work. You can see it as a layer in the layers panel and if I pull on the grey area I see int on the layer, but not on the main screen.

    Open a new file in photoshop cc and the name of the file is displayed but no Web white work. You can see it as a layer in the layers panel and if I pull on the grey area I see int on the layer, but not on the main screen.

    Nice day!

    Could you please post a screenshot with the relevant panels visible?

    Not turning off"use graphics processor" in the Performance preference and restarting Photoshop have a bearing on the issue.

    Kind regards

    Pfaffenbichler

  • When I return to the page of Google search results, need me a white screen of Google

    For example, I click on a link after doing a search on Google, then I decide to go back and check one
    the other links. When I return to the place to see my screen of Google results, I was white
    Screen of Google. So I put my search terms in all over world. This does not happen using
    Internet Explorer. Thanks for any help

    I have the same problem and looked for help on the Mozillazine.org site. Didn't help either, but I found that when you get the blank screen, click REFRESH, get the desired page.

    Another solution for this problem is available here: https://support.mozilla.org/questions/970863?page=2#answer-485663

    "Alternative" added as requested by jscher2000

  • How can I fix a black and white screen on the air from my iPad? I rebooted it and ran the last updated IOS 9.2 on it. It is stuck and won't return to the color. All other functions work except this.

    How can I fix a black and white screen on the air from my iPad? I rebooted it and ran the last updated IOS 9.2 on it. It is stuck and won't return to the color. All other functions work except this.

    Have you checked the settings > General > accessibility > greyscale > power off.

    If this does not work ty settings > General > accessibility > zoom > on. Triple, tap the screen with three fingers. Tap choose filter. Click None. Triple, tap the screen to get rid of the menu zoom. If you have enabled greyscale in zoom you can disable it in zoom.

  • Display Latitude E6510 does not. White screen with lines

    I was working on my Dell Latitude E6510 normally and after I finished I stopped him. I go to the city for about 2 hours and when I got home, I press the power button / stop and suddenly the screen is white with a few scratches on the side. Tried to feed him several times, nothing. Reconnect AC, battery, RAM, HARD drive, peripherals, still nothing.

    Output DisplayPort works without any problem.

    Output VGA works without any problem.

    You can see the pictures and the link to the video on YouTube of this problem.

    Any help or advice? Would be very grateful. Thank you.

    YouTube - Dell Latitude E6510 screen does not, lines, stripes, white

    I hope this helps. I have a Latitude E5410 I bought knowing that the LCD screen has a white screen or white veil or a matter of contrast high. I checked that the entire screen removable Panel or it deforming slightly likely to prevent the white veil to disappear, leaving me with a normal display. But I had to "hold my mouth just as it should be" OR I could lose visibility and I Whiteout reappear. I did troubleshooting from the LCD cable connection to the motherboard. I removed the cover of the LED/hinge and screws of the keyboard. I started the computer and put in the Setup (BIOS). After that I got the content of the screen, I removed the keyboard and waved the LCD cable connector. It was nice sitting. I replaced the keyboard and remove the bezel before display. I waved the display cable DC7TY to the small LED Council, but that did nothing. I turned off the computer.

    I unscrewed the 6 screws holding brackets LCD panel and hinge for the lid of the display, exposing the back of the display panel itself. On the right side, low on the Panel, I peeled back the glue 1/4 x 3/8 on the clear plastic covering the printed circuit board, exposing the flex cable going to the backlight. I spilled Brown lever that keeps the flex cable plugged into the connector on the plug, removed the cable, he moved several times to repeat, then hit the lever to keep it. With the LCD in this way exposed, I started the computer and entered in the Setup program. SUCCESS!  No amount of stirring or warping brought Whiteout. I've buttoned to the computer and came here for successful results.

    Your Dell may be different, but you can report if your symptoms or the results are different, and HOW EXACTLY became you a success. See you soon!

  • See the map displays white screen

    Hi all

    I looked through a lot of examples and messages on the map view, but it does not solve my problem.

    With this simple code in one of my qml files in the navigation pane, after a button is clicked:

    import bb.cascades 1.0
    import bb.cascades.maps 1.0
    
    Page {
        Container {
    
            layout: DockLayout {
            }
    
            MapView {
                id: myMap
                horizontalAlignment: HorizontalAlignment.Fill
    
                onCreationCompleted: {
                    myMap.setRenderEngine("RenderEngine3D")
                    myMap.longitude = -79.4042;
                    myMap.latitude = 43.6481;
                    myMap.altitude = 1800.0;
    
                }
            }
        }
    }
    

    and inserted it into my .pro file:

    LIBS +=-lbbdata - lbbcascadesmaps - lQtLocationSubset-lGLESv1_CM

    However, all I got is a black screen, and then a white screen.

    Any suggestions are welcome.

    Thanks in advance.

    jessica99327 wrote:

    Thanks for the info

    But if I put the minimum target to 10.1, is it not, devices with 10.0 cannot install the app?

    Yep

    jessica99327 wrote:

    So the only way to display the card view in 10.0 is to open the map of my application blackberry app is, no alternative?

    think 10.1 will very soon on most devices available BB10. Don #t know your app - perhaps 10.1 is earlier available for consumers, then your release ;-)

  • Apex 4.2.2 via Apex earpiece 2 - white screen returns

    Hello

    When you try to access the Apex using the listener I just get a white screen. (http://localhost: 8080/apex)

    http://localhost:8080/i/apex_version.txt - displays "Application Express Version: 4.2.2"-installation of images seems to be OK.

    Debugging say the "GET/apex / ' request ' has got the length of results: NULL.

    If I access it through the Oracle (mod_plsql) application server - it works fine.

    Is there something I'm missing during installation?

    Any help would be most appreciated.

    Thank you

    Anthony


    Apex 4.2.2 on database using SE GR 11, 2 and Apex listener 2.0.1.64.14.25 on 64 Linux 2.6.32 - 358.6.1.el6.x86_64.

    SQL > select version_no in the apex_release;
    VERSION_NO
    --------------------------------------------------------------------------------
    4.2.2.00.11

    Using java version "1.6.0_37".


    Debugging below.

    java-jar apex.war
    May 1, 2013 16:51:39 oracle.dbtools.standalone.Standalone run
    INFO: NOTE:

    Stand-alone mode is designed for use in development and test environments. This not is not supported for use in production environments.

    May 1, 2013 16:51:39 oracle.dbtools.standalone.Standalone run
    INFO: Starting standalone Web container to: / u/app/oracle/product/apex_listener/apex
    May 1, 2013 16:51:39 oracle.dbtools.standalone.Deployer deploy
    INFO: Deploy the application = /u/app/oracle/product/apex_listener/apex/apex/WEB-INF/web.xml path
    May 1, 2013 16:51:39 oracle.dbtools.standalone.Deployer deploy
    INFO: Deploy the application path = /u/app/oracle/product/apex_listener/apex/apex/WEB-INF/web.xml
    May 1, 2013 16:51:39 oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
    INFO: Using the configuration file: / u/app/oracle/product/apex_listener/apex
    Configuration properties for: apex
    cache. Caching = false
    cache. Directory = / tmp/apex/cache
    cache. Duration = Days
    cache.expiration = 7
    cache.maxEntries = 500
    cache.monitorInterval = 60
    cache.procedureNameList =
    cache.type = LRU
    DB. HostName = localhost
    DB. Password = *.
    DB.port = 1521
    DB. ServiceName = DEV01. ABC
    Debug.Debugger = true
    debug.printDebugToScreen = true
    error.keepErrorMessages = true
    error.maxEntries = 50
    JDBC. DriverType = thin
    JDBC. InactivityTimeout = 1800
    JDBC. InitialLimit = 3
    JDBC. MaxConnectionReuseCount = 1000
    JDBC. MaxLimit = 10
    JDBC. MaxStatementsLimit = 10
    JDBC. MinLimit = 1
    jdbc.statementTimeout = 900
    log. Logging = false
    log.maxEntries = 50
    Misc.Compress =
    misc.defaultPage = apex
    security.disableDefaultExclusionList = false
    security.maxEntries = 2000
    DB. UserName = APEX_PUBLIC_USER
    Using the JDBC driver: Oracle JDBC driver version: 11.2.0.3.0
    May 1, 2013 16:51:49 oracle.dbtools.rt.web.SCListener contextInitialized
    INFO: Oracle Application Express Listener initialized
    Version of application Express listener: 2.0.1.64.14.26
    Application Express listener server info: Grizzly/1.9.49

    May 1, 2013 16:51:49 com.sun.grizzly.Controller logVersion
    INFO: GRIZZLY0001: from Grizzly Framework 1.9.49 - 01/05/13 16:51
    May 1, 2013 16:51:49 oracle.dbtools.standalone.Standalone run
    INFO: http://localhost: 8080/apex began.
    Ask the path passes the validation of syntax
    Application of mapping to the database pool: PoolMap [_poolName = apex, _regex = null, _workspaceIdentifier = null, _failed = false, _lastUpdate =-1, = null, _type = REGEX _template]
    Applied database connection information
    Try to deal with the PL/SQL gateway
    = Processing application: =.
    GET /apex/
    = The request headers =.
    Host: wmsdev64.aboxford:8080
    user-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; RV:17.0) Gecko/Firefox/17,0 17,0
    accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    accept-language: en - us, en; q = 0.5
    accept-encoding: gzip, deflate
    Connection: keep-alive
    = Cookies in request =.
    Using the default page: apex
    isValidRequest(), name of the procedure: apex >
    Validation: apex
    Total number of arguments: 1
    SID: 22
    Analysis: 0 ms
    -----
    Start
    Apex;
    commit;
    end;
    Total number of arguments: 1
    Exec: 5ms
    All results: NULL
    = Request processed =.
    Application of PL/SQL Gateway transformed

    When you access http://Host/apex/le following occurs:

    -Listener opinion there is no name of the procedure mentioned in the URL if it views the value of misc.defaultPage. If this value is specified by default at the apex

    -Listener calls the procedure called by misc.defaultPage, so if it is the default value of the apex of the application becomes effectively: http://Host/apex/apex

    - Apex procedure is provided by APEX as a point of entry at the APEX, it is redirect to the procedure f with the application and the default page ID

    It seems, for some reason any redirection is not generated by the procedure.

    First thing I would try is to remove the parameter misc.defaultPage of your defaults.xml, it seems to be the normal value by default, so it is not necessary, so I'd be tempted to remove it.

    Second thing I want to do is try the following URLS:

    http://host:port/apex/apex
    http://host:port/apex/apex_admin
    http://host:port/apex/f?p=4550:1
    

    I would also check the setting of PlsqlDefaultPage of dads.conf of mod_plsql to see if a default custom page has been set up, if the same value must be used for the parameter of misc.defaultPage listener

    Also, what do you see when you do a display on the white page source?

  • Cannot view my project? White screen? "Incompatible display driver"? Help?

    good, so I'm having this problem where I CAN open the project, but when I go there to play I don't SEE he plays. It's just a white screen. Playback audio but no video can be seen. This happens with ALL my projects. A message also appears when I try to open ONE of my projects that says this:

    We have detected an incompatible display driver. To get a better reading performance and faster, update your display driver.

    View the details of the driver: ATI Technologies Inc. - ATI Mobility Radeon. HD 530v 3.2.9756 compatibility profile context

    I don't know what that means and I don't know how to fix it. I used and played these same projects later than yesterday, and everything worked fine. I even deleted space on my computer to make sure that it was not just filled with media.

    PLEASE SOMEONE HELP ME I JUST GOT ONE FOR CHRISTMAS, I DON'T WANT TO LOSE MONEY!

    Have you tried this fair the questions to the right of the forum?

    http://forums.Adobe.com/thread/769303

  • Preloader displaying does not simulate download - white screen

    Hello:

    I followed a tutorial on gotoandlearn.com and followed by a "T", but can not solve myself. I built a simple preloader in AS2, but when I simulate the download for a Flash site in Adobe Flash CS4, I see is a white screen, and then continues on the site. I preview the profile of bandwidth and I see that it works it's magic preload; I can't see the animation.

    I looked through many forums and I don't use of components that are exported to the first image - at least one that I know. Everyone knows the same problem?

    My set up is the following (from Lee tutorial):

    First keyframe (action):

    var amountloaded:Number = _root.getBytesLoaded()/_root.getBytesTotal ();

    PreLoad._width = amountLoaded * 190;

    loadText.text = Math.round(amountLoaded * 100) + '% ';

    Second keyframe (action):
    {if (_root.getBytesLoaded () == {_root.getBytesTotal ())}
    gotoAndPlay (3);
    }
    else {}
    gotoAndPlay (1);
    }
    Third keyframe:
    Stop();

    Any thoughts? Thank you!

    any framework 1 and all export for actionscript Framework 1, take care before your preloader displays.  so, if your preloader begins at 40%, you export probably a good amount of assets for actionscript Framework 1.

    to remedy this, use a standalone preloader or export for some frame after frame 3.

    p.s. Please mark this thread as answered, if you can.

  • PHP display white screen files

    I use Bluehost as my hosting service and this problem never happened before using as a test server. I run Mac OS X and recently followed the tutorial on implementing a PHP5 on my Mac environment. Problem is after doing everything as said and test php to see if it is, it is, I tried watching a th PHP files (with only observations of dynamic message database connections) and they only display white screens! I had already designed site and wanted to pass to this method of the local host, so I don't update my site files when changes to my pages... but this is not acceptable. I see that many people have the same problem on the net, but there are no solutions, a few complaints. All HTML pages displayed in the browser in my browser: http://localhost/~username/Sitefolder/, then why is the php files that make whitescreens?

    Runs Apache, PHP runs... I use my old databases SQL Bluehost, but this shouldn't be a problem. I don't want to install MYSQL on my computer when I got it with my provider, and I know that this is not the cause of the problem. This is some syntax defective php on a part of Dreamweaver?

    Coats of Travis wrote:
    > All HTML pages displayed in the browser in my browser:
    > http://localhost/~username/Sitefolder/, why so that make the php files
    > whitescreens?

    This means that you have an error in your PHP pages and as your host
    has disabled the display of error messages (good for safety). Put the
    following the top of a PHP page code:

    Reload the page and see this error message is generated. I suspect that
    you have an include file which cannot be found (probably the wrong path
    in the include command).

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

Maybe you are looking for