Hi even i have same problem,,splash screen appears only once,,,and doesnt show up when application is restarted on device.
How to solve it?Please tell me. I hope Dror520 has solved the problem. Thanks Kavitha On Mon, Apr 5, 2010 at 6:43 AM, Dror520 <dror...@gmail.com> wrote: > thanks for your answer! i figured it out it was actually my fault ... > lol > now i'm having a hard time figuring out how to start the mydeals > activity but keep the splashscreen activity showing on the screen and > when the mydeals activity is done move to that activity ... > thanks! > > On Apr 3, 7:34 am, Kumar Bibek <coomar....@gmail.com> wrote: > > 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<android-developers%2bunsubscr...@googlegroups.com> > 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. > -- 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