you can put buttons on notification? On Tue, Nov 25, 2008 at 4:55 PM, Romain Guy <[EMAIL PROTECTED]> wrote:
> > You can use notifications :) (If it makes sense, that is) > > On Tue, Nov 25, 2008 at 4:52 PM, Jamie L <[EMAIL PROTECTED]> wrote: > > My application listens to certain event from another app. As soon as the > > event is received, I want to displays a dialog or a toast to notify the > user > > and give users a few action choices with buttons. We can't display a > dialog > > because it doesn't pop up in the foreground over the other app. Toast is > my > > only choice. Looks like toast is not the answer either! > > > > On Tue, Nov 25, 2008 at 4:33 PM, Romain Guy <[EMAIL PROTECTED]> > wrote: > >> > >> > 1. The button is not clickable! onClick is not called when I click > on > >> > the > >> > button. > >> > >> Toasts are meant only to display information, they are not meant for > >> user interaction. Use a dialog to do this. > >> > >> > 2. If I replace Toast.LENGTH_LONG with a number 10000, the toast does > >> > not > >> > stay for 10 seconds. > >> > >> You cannot specify the duration of a toast except using the predefined > >> duration. > >> > >> > Is it by design that you can't add any listener to the UI controls on > >> > the > >> > toast? > >> > >> Yes. > >> > >> > How do you change the duration of how long the toast stays? > >> > >> You can choose between SHORT and LONG. > >> > >> -- > >> Romain Guy > >> www.curious-creature.org > >> > >> > > > > > > > > > > > > > -- > Romain Guy > www.curious-creature.org > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---