0

Ich habe Probleme mit meinem Splash-Screen. Ich rotiere ein Bild in imageview und ich möchte nach einiger Zeit neue Aktivität starten, aber es funktioniert nicht. Ich habe versucht, folgenden-Wie starte ich die Aktivität nach der Animation neu?

protected override void OnCreate(Bundle bundle) 
     { 
      base.OnCreate(bundle); 

      SetContentView(Resource.Layout.SplashScreen); 
      ImageView ImageForRotation = FindViewById<ImageView>(Resource.Id.imageForRotation); 

      var loadedImage = AnimationUtils.LoadAnimation(this,Resource.Animation.SplashScreenImageRotation); 

      ImageForRotation.StartAnimation(loadedImage); 

      Thread.Sleep(3000); 
      StartActivity(LoginScreen); 
     } 

In einem xml fileandroid:repeatCount=3 Was soll ich denn tun sollen?

Antwort

0

Verwendung dieses

startActivity(this,DestinationActivity.class);