Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Regular Contributor
Posts: 70
Registered: ‎04-14-2010
My Device: bold 9000
My Carrier: new
Accepted Solution

hiow can i Loading image again & again

my code is

---------------------------

final class NewScreen extends MainScreen

{

        Field Fimage = new WebBitmapField(url);

        add(Fimage);

}

------------------------

 

i want to re paint Fimage every 3 sec

how can i do this ?

 

it paints only one pic

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: hiow can i Loading image again & again

I'm guessing that WebBitmapField is something you have picked up.  From memory, it downloads an image.  Do you really expect to download a new image and update the screen every 3 seconds?  I take it you don't pay any data charges?!

 

The usual way to have a timed sequence of operations, is to use Timer and TimerTask.  Have a look at the API to see how you might be able to use it.