开发者

Blackberry : How to change image periodically in my screen?

开发者 https://www.devze.com 2023-01-01 09:26 出处:网络
I want to change the image in my application screen periodically. how can i implement it ? is there any timer control(like in iPhone) for BlackBerry ?

I want to change the image in my application screen periodically.

how can i implement it ?

is there any timer control(like in iPhone) for BlackBerry ?

waiting for your suggessions...

thanks in advance开发者_运维问答...


try this.

   try {
                    timer = new Timer();
                    timer.scheduleAtFixedRate(new ImageTask(), 0, 5000);
                } catch (Exception e) {
                    // do nothing
                }

                private class ImageTask extends TimerTask {
                    public void run() {
                        System.out.println("Test Printing..");

                    }
                }
0

精彩评论

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

关注公众号