I am printing Toast message in my application to show notification but i want to know value of Toast.LENGTH_LONG and Toast.LENGTH_SHORT. What other values i can use.
Can anyone tell me what is the value of these two variables?
I am printing Toast message in my application to show notification but i want to know value of Toast.LENGTH_LONG and Toast.LENGTH_SHORT. What other values i can use.
Can anyone tell me what is the value of these two variables?
There are only these two constants related to Toast
http://developer.android.com/reference/android/widget/Toast.html#LENGTH_LONG
Why would you want to know their values though? You should always use the constants instead.
They are one and zero as detailed in the Toast documentation. They are the only two values and no others are possible. There is an "indefinite toast hack", but I would not use an application that used it.
There is another question that answers what you are looking for. The answers are:
This was courtesy of FeelGood. You can find the whole thread below.
Can an Android Toast be longer than Toast.LENGTH_LONG?
Hope this helps.