How To Connect Splash Screen With .gif Animation File?
I have developed an app that plays a music when the user presses on button. And I have also developed a splash screen along with the app and it did work with the app. However, I wa
Solution 1:
Your code is starting a new "activity" with the MYGIFView class. It seem that it should be an activity, not a View.
Think just need to had
setContentView(newMYGIFView(this));
In the onCreate of the SplashActivity, before the handler declaration. and remove it in the onCreate of the MainActivity (seem it's a mistake here).
And then replace MyGIFView.class
with MainActivity.class
in the post delayed Handler :
Intent i = newIntent(SplashScreen.this, MainActivity.class);
And also need to remove the LAUNCHER
and MAIN
param of the manifest for the main activity:
<intent-filter><actionandroid:name="android.intent.action.MAIN" /><categoryandroid:name="android.intent.category.LAUNCHER" /></intent-filter>
Edited : erata SecondActivity -> MainActivity
Post a Comment for "How To Connect Splash Screen With .gif Animation File?"