ich folgenden Code bin mit, von first
Aktivität zu ListViewCheckboxes
Aktivität zu gehen, automatisch nach 5 Sekunden, aber es hat folgende Fehler:Fehler von auf Aktivität zum anderen automatisch
public class first extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.firstlayout);
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
public void run() {
// TODO: Your application init goes here.
Intent mInHome = new Intent(first.this, InvoiceASAPTabActivity.class);
first.this.startActivity(mInHome);
first.this.finish();
}
}, 3000);
}
}
Error:(17, 33) error: Handler is abstract; cannot be instantiated Error:(21, 57) error: cannot find symbol class InvoiceASAPTabActivity Error:(18, 16) error: cannot find symbol method postDelayed(,int)
I‘ Ich schätze wirklich, wenn jemand helfen könnte, danke!
Sieht aus wie Sie viele Importe sind vermisst. – yedidyak
Ich habe diese: import android.app.Activity; importieren android.content.Intent; importieren android.os.Bundle; importieren android.os.Handler; – niloofar