I have had a quick look and can't see anyway to do what you want (there might be a way I just can't find it).
One of the reasons if I read about (on other platforms) for NOT implementing "bring my app to the front and make it active right now" is that it soon degenerates into application wars, with multiple application each trying to be the top-most application. In this situation no one wins and the end-user typically uninstalls both apps. Another way to think about this is - should the end-user be interrupted right now? What if they are doing something more importent than your application such as trying to phone the emergency services. -- RichardC On Oct 20, 10:39 am, pink 444 <pnk...@gmail.com> wrote: > After studying some articles regarding notifications .I have > understood something that after clicking on the notification only > specified activities are activated or brought into foreground. > > But in my application i have to bring an activity as soon as a > background event occurred. > > How can i implement that scenario using Notifications ? > > Thanks, > -Siva. > > On Oct 20, 1:24 pm, pink 444 <pnk...@gmail.com> wrote: > > > Thanks for your replay. > > > Can u give me a working example for letting an activity to > > foreground using notifications. > > > On Oct 19, 6:17 pm, RichardC <richard.crit...@googlemail.com> wrote: > > > > Notificationhttp://developer.android.com/reference/android/app/Notification.html > > > > -- > > > RichardC > > > > On Oct 19, 1:57 pm, pink 444 <pnk...@gmail.com> wrote: > > > > > Hai, > > > > > In my application i wait on socket for network events.On some > > > > events i have to bring activity into foreground(make activity as > > > > running) if at all it is not in the foreground. > > > > > How can i do this? > > > > > Any suggestions would be appreciated highly. > > > > > Thanks, > > > > -Siva > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---