即時通訊新的Java可以一些請幫助我,我無法確定活動super.pause();從biginig它是.OnPause .OnResume .. ..這樣,然後我推動所有更改爲.pause .resume。 。.. .. http://i.stack.imgur.com/q5N7W.jpg對於Thread類型,方法pause()未定義?
公共類CleaningActivity延伸活動{
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
} Thread logoTimer = new Thread(){
public void run(){
try{
int logoTimer = 0;
while (logoTimer <21000){
sleep (100);
logoTimer = logoTimer +100;
}
startActivity(new Intent("com.iwilldothis.CLEARSCREEN"));
} catch (InterruptedException e){
// TODO Auto-generated catch block
e.printStackTrace();}
finally{
finish();
}
};
protected void onStart() {
// TODO Auto-generated method stub
super.start();
}
protected void onResume() {
// TODO Auto-generated method stub
super.resume();
}
protected void onPause() {
// TODO Auto-generated method stub
super.pause();
}
protected void onStop() {
// TODO Auto-generated method stub
super.stop();
}
protected void onDestroy() {
// TODO Auto-generated method stub
super.destroy();}
};
}
你想實現什麼? – Vincent 2012-04-01 20:46:08
請發佈封閉此類的整個類,或至少是類聲明。 – EJP 2012-04-02 00:43:28
希望你已經解決了你的問題? – Ishu 2012-04-02 02:52:09