您好,我想刷新我的Android应用程序。奇怪的是我一直遇到异常结束我的应用程序不断爆炸...难道这么难吗?这是我的代码:
public void refreshIt(long interv)
{
thr = new Thread();
try
{
thr.start();
while(refreshing)
{
writeToMe("refresh....");//my method writing msgs to textview, don't mind it
thr.sleep(1000);
}
}
catch(Exception e){writeToMe(e.getMessage());}
}