开发者

jpeg image taking long time to load in blackberry

开发者 https://www.devze.com 2022-12-25 17:43 出处:网络
I have developed an applicatio开发者_如何学Gon in blackberry in which I provided a functionality to load image..but when image is set it does not appear on the screen till the light of the phone is on

I have developed an applicatio开发者_如何学Gon in blackberry in which I provided a functionality to load image..but when image is set it does not appear on the screen till the light of the phone is on and later once light goes off and light is made on image appears.

I want to know why image takes long time to load or there could be a problem with image refresh... and what could be the possible solution to reduce the image load time or refresh time..?


The display of the Blackberry is pretty small. Maybe your image is huge in comparison, so the poor device has to wade through lots of data (and has to throw away most of it). Try to create a thumbnail of the image when the app sees the original image for the first time in exactly the same resolution as the display of the device.


You can try to refresh image after loading it to screen:

    UiApplication.getUiApplication().invokeLater(
        new Runnable(){
            public void run() {
                bitmapField.invalidate();
    }});
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号