Android 小项目之--消息、线程、动画显示图片
2010-06-04 14:29:00 来源:WEB开发网核心提示:super.handleMessage(msg);}};myThread=new Thread(this);myThread.start();}@Overridepublic void run() {// TODO Auto-generated method stubtry {do{a++;Thread.sleep(4
super.handleMessage(msg);
}
};
myThread=new Thread(this);
myThread.start();
}
@Override
public void run() {
// TODO Auto-generated method stub
try {
do
{
a++;
Thread.sleep(4000);
Message msg=new Message();
msg.what=testHandler.my_key;
myHandler.sendMessage(msg);
}
while(Thread.interrupted()==false);
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
}
}
源瘁下蒌:/Files/TerryBlog/testHandler.rar
如果你有什麽疑?或者建阻你可以 QQ:285735942 或者Email:terryyhl@gmail.com
更多精彩
赞助商链接