對不起,提出這樣一個基本問題,實際上我需要經過一定的時間間隔後調用一個方法,它實際上是將文本分配給android中的textView,這應該會改變。所以請給我一個最好的方法去做這個。 感謝您的期待。Android -Timer概念
{
int splashTime=3000;
int waited = 0;
while(waited < splashTime)
{
try {
ds.open();
String quotes=ds.getRandomQuote();
textView.setText(quotes);
ds.close();
}
catch(Exception e)
{
e.printStackTrace();
}
}
waited+=100;
}
有什麼不對的代碼?有沒有錯誤?你有沒有調用threadname.start()? –