标签:android 使用 java sp on 问题 log 代码 ad
============问题描述============
============解决方案1============
============解决方案2============
============解决方案3============
class testThread extends Thread{ public void run() { Message message = new Message(); mHandler.sendMessage(message); } } //在handler中更新UI private Handler mHandler = new Handler(){ public void handleMessage(Message msg) { textView.setText("你想变的内容"); }; };
============解决方案4============
private final Timer timer = new Timer(); private TimerTask task; Handler handler = new Handler() { @Override public void handleMessage(Message msg) { // TODO Auto-generated method stub textView.setText("XXXX"); super.handleMessage(msg); } }; task = new TimerTask() { @Override public void run() { // TODO Auto-generated method stub Message message = new Message(); message.what = 1; handler.sendMessage(message); } }; timer.schedule(task, 1000, 1000);
============解决方案5============
标签:android 使用 java sp on 问题 log 代码 ad
原文地址:http://www.cnblogs.com/qibileiru/p/4041998.html