Make sure that your onCreate method is called, and it is not resumed.
You can put some Log statements to check this in your onCreate method.

Thanks and Regards,
Kumar Bibek

On Mar 30, 3:45 am, Dror520 <dror...@gmail.com> wrote:
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to