You cannot just bring your app into foreground. Its against android rules. You have to use notification mechanism to inform user about an event.
Regards, Batosz On Tue, Oct 20, 2009 at 10:24 AM, 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 -~----------~----~----~----~------~----~------~--~---