J2ME 技术的学习与实践者

[导入]OpenBaseMovil Nokia s60, 6670,e71,e61问题?


网站: JavaEye  作者: iwinyeah  链接:http://iwinyeah.javaeye.com/blog/168522  发表时间: 2008年03月06日

声明:本文系JavaEye网站发布的原创博客文章,未经作者书面许可,严禁任何网站转载本文,否则必将追究法律责任!

   private void doShow()
    {
        // This delays minimze the chance that a Nokia 6670 or Nokia S60 3rd
        // edition device (might apply to other nokias) freez when showing a
        // view. The total delay of 600ms, with this distribution seems to
        // make it stable on E70 and E61. The delay is only applied to Nokia
        // phones at this moment
        if( displayable != null )
        {
            final Display display = Application.getManager().getDisplay();
            delay();
            delay();
            display.setCurrent( displayable );
            if( !DeviceInfo.isNokia() && focusedItem != null )
            {
                delay();
                delay();
                display.setCurrentItem( focusedItem );
            }
            setCurrent( this );
            delay();
            delay();
        }
    }

    private void delay()
    {
        if( delay )
        {
            // Under some strange circumstances the Nokia 6670 crashes whitout this delay
            try
            {
                Thread.sleep( 100 );
            }
            catch( InterruptedException e )
            {
            }
        }
    }



是否的确是这样?天啊,谁可以使用以上环境的设备给我测试一下我的手机理财JAccount呢?
本文的讨论也很精彩,浏览讨论>>


JavaEye推荐




文章来源:http://iwinyeah.javaeye.com/blog/168522

posted on 2008-03-06 07:54 iwinyeah 阅读(105) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航: