Mein Problem ist der Fortschritt Dialog wird nicht mit dem Splash-Bildschirm angezeigt? Kann jemand dies lösen, Jede Hilfe konnte dank im Voraus geschätzt werden!Probleme im Begrüßungsbildschirm mit progressDialog
public class Splash extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splash_layout);
Thread thread = new Thread(){
@Override
public void run() {
try
{
sleep(3*1000);
ProgressDialog progressDialog = new ProgressDialog(Splash.this);
progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
progressDialog.setMessage("wait");
progressDialog.setCancelable(false);
progressDialog.show();
}catch (Exception e)
{
e.printStackTrace();
}finally {
Intent i = new Intent(Splash.this,MainActivity.class);
startActivity(i);
finish();
}
}
};thread.start();
}
}
Eigentlich möchte ich Spinner Dreh Stil dort mit diesem Spinner nur Spinner erschien dann keine dilaog Boxen ist wie @Nirav – AnilkumarJohn
Verwenden preogressbar Bibliothek –