Hey, i made a splash screen:
public class SplashScreen extends Activity {
protected int splashTime = 2000;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
new Handler().postDelayed(new Runnable(){
@Override
public void run() {
Intent intent = new Intent(SplashScreen.this, MyDeals.class);
SplashScreen.this.startActivity(intent);
SplashScreen.this.finish();
}
}, splashTime);
}
}
AndroidMenifiest:
<activity android:name=".SplashScreen"
android:theme="@android:style/Theme.NoTitleBar"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".MyDeals"
android:theme="@android:style/Theme.NoTitleBar"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.DEFAULT"/>
<category android:name="android.intent.catagory.VIEW" /
>
</intent-filter>
</activity>
it works the first time i put it on the device. but then when i kill
the application so the application can start over i don't see it. it
goes straight to the next activity MyDeals.
can you please help me thanks!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe, reply using "remove me" as the subject.