import android.app.;
import android.os.;
import android.view.;
import android.widget.;
//最简单的倒计时喜欢就拿去
public class MainActivity extends Activity
{
int hui=99;
TextView view;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
view =(TextView)findViewById(R.id.time);
handler2.post(updateThread2);
}
Handler handler2 = new Handler();
Runnable updateThread2= new Runnable(){
public void run() {
hui++;
view.setText(hui+"");
handler2.postDelayed(updateThread2, 1000);
}
};
}## 最简单的倒计时