[android-beginners] What is a toast?

2009-11-10 Thread pushkar bandi
Hi,

Could somebody give me some detailed information about toast?

I got a comment saying that This is called a toast and cannot be
dismissed by the user. Toasts are dismissed automatically after a fixed
period of time.

Then why the period of time for a toast is more, which degrades the user
experience.

Thanks

Regards
Pushkar Setty

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Re: [android-beginners] What is a toast?

2009-11-10 Thread Marton Kodok
Think of Toast like a subtitle in movies.
It's a simple text that shows for X seconds.
It has no buttons, it's like a bubble that tells you something happened,
then vanishes out.

If you setup a long period for a toast, that will be visible too long and
will degrade the user experience, as in movies if you have a subtitle on
screen for a long time, longer then the speech, you dislike it.

http://www.androidx.org/wp-content/uploads/2009/10/android-toast-usage-03.png

2009/11/10 pushkar bandi pushkarse...@gmail.com

 Hi,

 Could somebody give me some detailed information about toast?

 I got a comment saying that This is called a toast and cannot be
 dismissed by the user. Toasts are dismissed automatically after a fixed
 period of time.

 Then why the period of time for a toast is more, which degrades the user
 experience.

 Thanks

 Regards
 Pushkar Setty

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 To post to this group, send email to android-beginners@googlegroups.com
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
Márton

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Re: [android-beginners] What is a toast?

2009-11-10 Thread Sean Hodges
From the dev guide
(http://developer.android.com/reference/android/widget/Toast.html):

A toast is a view containing a quick little message for the user. The
toast class helps you create and show those.
When the view is shown to the user, appears as a floating view over
the application. It will never receive focus. The user will probably
be in the middle of typing something else. The idea is to be as
unobtrusive as possible, while still showing the user the information
you want them to see. Two examples are the volume control, and the
brief message saying that your settings have been saved.

Think of it like the transient notification pop-ups you get in Pidgin
or MSN messenger. It appears for a pre-determined amount of time, at a
position specified by the developer. It differs from a pop-up dialog
because you can continue to interact with the UI whilst it is being
displayed, and you are not expected to act on it.

The period of time for a toast is customisable, you want to use the
setDuration() method to change it:
http://developer.android.com/reference/android/widget/Toast.html#setDuration(int).


On Tue, Nov 10, 2009 at 11:25 AM, pushkar bandi pushkarse...@gmail.com wrote:
 Hi,

 Could somebody give me some detailed information about toast?

 I got a comment saying that This is called a toast and cannot be
 dismissed by the user. Toasts are dismissed automatically after a fixed
 period of time.

 Then why the period of time for a toast is more, which degrades the user
 experience.

 Thanks

 Regards
 Pushkar Setty

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 To post to this group, send email to android-beginners@googlegroups.com
 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 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.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en