​如果需要,如何实现?大家简单的用A,B,C分别表示显示,旋转,发送即可,谢谢!

解决方案 »

  1.   

    手机采集到数据后,使用线程或异步Async任务来更新UI!
      

  2.   

    关于异步给你个连接http://blog.csdn.net/trent1985/article/details/23285173
      

  3.   


    大神方便留个QQ吗,还有些小问题想请教,谢谢啦有事邮件吧,QQ基本不用!
      

  4.   

    后台获取数据,之后用hanlder刷新主线程ui
      

  5.   

    这图片旋转应该是动画吧,把imageview加载好动画,用异步Async实现,很简单的,,,
      

  6.   

    /*-----主线程部分代码---*/
    private Handler handler = new Handler(){
    @Override
    public void handleMessage(Message msg) {
    if (msg.what == 1) {
    textView.setText(msg.arg1+"°");//显示角度
    }
    super.handleMessage(msg);
    }
    //开启子线程,,,
    new Thread(){
    @Override
    public void run(){
    Message message = new Message();
    message.what = 1;
    message.arg1 = degree;
    handler.sendMessage(message);
    }
    }.start();
    这样处理了图片还是不能正常旋转啊,求大神QQ指导
      

  7.   


    使用Handler 机制可以吗,请看9楼!
    还是没解决,求QQ指导啊
      

  8.   


    try{
    /**旋转动画*/
    RotateAnimation animation = new RotateAnimation(predegree, degree,
    Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f);
    animation.setDuration(200);
    imageView.startAnimation(animation);
    predegree=-degree;//图片旋转
    }catch(Exception e){
    System.out.println("Exception:"+e);
    return;
    }
    求QQ啊,在线等,在这里说不清。谢谢啦