i have a utility method which takes a Context and either a string resource ID, a raw string, or a Throwable, and pukes up a Toast appropriately. that way it's only one line of code in the actual client wanting to show a message.
recommend hiding stuff like Dialog & Toast this way so you can change your mind later and not have a nightmare. At 3:22 PM -0800 12/7/09, jotobjects wrote: >Seems like the poster is just asking if there is a better way then the >5 function calls he is using. The suggestion to use a Toast is >another way. > >On Dec 7, 3:00 pm, Jason Proctor <[email protected]> >wrote: >> and the requirement he's describing would be better served with a >>Toast, IMHO! >> >> >Blasphemy! >> >> >Try coding for Symbian for more than 30 seconds >> >and run back crying! ;) Or you can always wrap the code in a single >> >function call. >> >> >-- >> >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 >> >> -- >> jason.vp.engineering.particle > >-- >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 -- jason.vp.engineering.particle -- 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

