私はJavaで新しいことができますいくつか私は活動super.pause()を識別することができます助けることができますbiginigから.OnPause .OnResume .. ..そのように私はすべてを変更するように押された。 。.. .. http://i.stack.imgur.com/q5N7W.jpgpause()メソッドは、Thread型では未定義ですか?
パブリッククラス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
これを囲むクラス全体、または少なくともクラス宣言を投稿してください。 – EJP
あなたの問題を解決したと思いますか? – Ishu