开发者

Blackberry : How to change image periodically in my screen?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜