2
Est-il possible d'ouvrir un écran FragmentActivity après Splash?Android Splash Screen to FragmentActivity
Je veux ouvrir le FragmentActivity/Fragment après l'écran de démarrage, mais je me suit Erreur:
Unable to find explicit activity class {com.**********.MainActivity}; have you declared this activity in your AndroidManifest.xml?
Mon écran d'accueil:
public class SplashScreen extends Activity {
private final int SPLASH_DISPLAY_LENGTH = 3000;
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.activity_splash);
new Handler().postDelayed(new Runnable(){
@Override
public void run() {
Intent mainIntent = new Intent(SplashScreen.this,Juli.class);
SplashScreen.this.startActivity(mainIntent);
SplashScreen.this.finish();
}
}, SPLASH_DISPLAY_LENGTH);
}
}
Manifest:
<activity
android:name="com.test.tab.SplashScreen"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
ty a travaillé je l'ai compris :) –
ill accepter dans 5min –
Chaque activité que vous voulez utiliser doit être déclarée dans le manifeste - http://developer.android.com/guide/topics/manifest/activity-element.html –