Hi Kavitha,

I think it's not the place that is wrong but maybe how you handle the
life of your activity.

I'm not sure why you prefer to have the splash screen showing every
time instead of skipping directly inside the app which sounds better
for the user(no waiting time), but here is what you can do :

If you have only one activity, then call finish(); in the OnStop() of
your activity :

This will tell Android that this activity has ended completely. And on
the next run causes Android to restart it from scratch.

This is really not a good advice, but it should work.

Beside you should read at least the first chapters of this document
that explains the life time and the order in which onstart, onrestart,
onresume, onpause, ... are called :
http://developer.android.com/intl/de/reference/android/app/Activity.html

Good luck

Yahel

-- 
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.

Reply via email to