对不起,提出这样一个基本问题,实际上我需要经过一定的时间间隔后调用一个方法,它实际上是将文本分配给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()? –