* > If I write an > activity to play the sound requested by the notification, the launched > activity will go background...and then? * So the problem is what to do once you have played the sound via an activity and the launched activity that you have no control of is sent to the background?
If that is the problem then I would either: - play the sound via a service rather than an activity so the launched activity doesn't ever go in the background - have the activity that plays the sound re-launch the launched activity If it were me I would probably try to go with the first of the two... If I didn't understand the problem correctly please correct me. Thanks, Justin ---------------------------------------------------------------------- There are only 10 types of people in the world... Those who know binary and those who don't. ---------------------------------------------------------------------- On Mon, Apr 19, 2010 at 12:48 PM, Sebastián Treu <[email protected]>wrote: > On Mon, Apr 19, 2010 at 3:18 PM, Justin Anderson > <[email protected]> wrote: > > I'm not sure I follow what you are trying to accomplish... > > > Justin, > > What I want to achieve is a service that notificates users. I will > use the NotificationManager, but my activity uses another activity > that I have no control over it. It's an already built activity. So, > when my activity launches it, goes background and is stopped by the > android activity lifecycle (so, it can be later killed if android > needs more mem). Into foreground I will have the launched activity > (the one i didn't wrote). > > The service will trigger a notification if some condition is meet for > playing a sound or whatever. How can I have control over all the > scenario if I want to return to the launched activity? If I write an > activity to play the sound requested by the notification, the launched > activity will go background...and then? > > Sry, I'm new to this kind of managing activities that It's hardly to > get used to. > > Regards > > -- > If you want freedom, compile the source. Get gentoo. > > Sebastián Treu > http://labombiya.com.ar > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > > NEW! Try asking and tagging your question on Stack Overflow at > http://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > [email protected]<android-beginners%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

