views:

64

answers:

2

Hi I have created a splash screen but I am not sure how to get it to start. I have tried putting it in the top folder but I can't get it to start, I realise this is because it is the last item I created on my app.

How do I get it to the top of the build path.

A: 

maybe this helps: Link

Marco Schmid
Sorry for being a noob but I dont see the answer in this topic, I have followed this tutorial but I still have a splash screen that doesnt start at the begining
JonniBravo
Very, VERY bad tutorial. Why use a thread for the delay? Just use `Handler.postDelayed()`, no more threads! Ugh! http://d.android.com/reference/android/os/Handler.html
Felix
true, im sorry ;)
Marco Schmid
+1  A: 

Have you placed your Splashscreen in your manifest. Should place your Splashscreen as the first activity and then the main activity. For eg: //First Activity as Splashscreen

activity android:name=".SplashScreen"

 android:screenOrientation="portrait"
              android:label="@string/app_name"
              android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

//Splashscreen activity ends here

Your main activity followed by remaining activities.

    <activity android:name=".Aptv"
              android:label="@string/app_name"
              android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
              android:screenOrientation="portrait">
        <intent-filter>
            action android:name="com.ayansys.aptv.Aptv" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
Remmyabhavan