android - Splashscreen and main activity configuration -


i have application starting @ splash screen loading contact list, when finished, starts main activity ; best way configure these 2 in manifest , intent filters action ans category ?

<activity android:name=".splashactivity"         android:nohistory="false"         android:theme="@style/apptheme.noactionbar">         <intent-filter>             <action android:name="android.intent.action.main" />             <category android:name="android.intent.category.launcher" />         </intent-filter>     </activity>     <activity android:name=".mainactivity"         android:label="@string/app_name"         android:theme="@style/apptheme.noactionbar" android:launchmode="singletask">         <intent-filter>             <action android:name="android.intent.action.main" />             <category android:name="android.intent.category.default" />         </intent-filter>     </activity> 

i don't understand question...i configure them usual , set launcher intent-filter splashscreenactivity:

<activity android:name="com.example.splashscreenactivity">             <intent-filter>                 <action android:name="android.intent.action.main" />                 <category android:name="android.intent.category.launcher" />             </intent-filter> </activity> 

and after loading contactlist start mainactivity

intent intent = new intent(this,mainactivity.class); //note contactlist must parcelable intent.putextra("contact_list",contactlist); startactivity(intent) 

Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -