Thanks for response yahel,

But my problem is,,

I am developing music player app,,so at start of app I am showing splash
screen,,,
and then playing music files from background thread

and situation is like below--
when music is playing and user presses home button,,,music still continues
to play from background thread.
Now when user relaunches the application,,now splash screen doesnt appear.

My code is same as Dror520.

how to make splash screen appear everytime app launched?

Thanks
Kavitha



On Tue, Apr 6, 2010 at 2:35 PM, Yahel <[email protected]> wrote:

> 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]<android-developers%[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.
>

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

Reply via email to