Questions tagged [toast]

A toast notification is a transient message to the user that contains relevant, time-sensitive information and provides quick access to related content in an app.

A toast notification is a small informational popup window in a GUI, used to notify the user of an event or status change. The user cannot interact with a toast notification, which fades away after a short amount of time. The term was allegedly coined during the development of MSN Messenger because the notification windows slid up from the bottom of the screen, like toast popping up from a toaster.

Within stackoverflow, the tag most often refers to the Android class android.widget.Toast. For more information, see Creating Toast Notifications.

2068 questions
0
votes
1 answer

toast.cancel() doesn't seem to work

I am trying to stop a toast message from appearing / stacking up while an instance is still shown on the screen. I press the "decrement button" and it is to reduce the quantity by 1, however if the quantity is equal to 1 a toast message appears. Now…
davemib123
  • 135
  • 1
  • 14
0
votes
1 answer

espresso check toast message for partial message text

I need to espresso check a toast message pop up when user click on a button. eg. it will either show 'added to favorite' or 'remove from favorite', the strings which are below from string.xml. The toast message might varies, so i can only check if…
kggoh
  • 742
  • 1
  • 10
  • 24
0
votes
1 answer

Does tizen and orsay cache static files on Smart TVs?

I'm developing TV app with TOAST and in one of my menu I have a catalog with about 100 images. If I load images like below does tizen and orsey cache them and use them later or they read those from server every time.
Hossein Rashno
  • 3,073
  • 1
  • 25
  • 49
0
votes
3 answers

How do I show Toast message in secondActivity?

I am trying to do that when user is successfully login then it go to firstActivity.class and show message("Welcome"). But if User is failed to login then Toast message Show in Another secondActivity? BlankFragment: public View…
Haider
  • 99
  • 1
  • 13
0
votes
0 answers

Notification service - Angular 2

I am strictly following a tutorial on how to implement a push and toasts notifcation service. i have run into this error and i seem not to why the error keeps coming up. Below is the error and the code for the simple notification stack in angular…
XamarinDevil
  • 873
  • 5
  • 17
  • 38
0
votes
2 answers

How can I show this Toast message only if I click the second Tab?

I have a navigation bar with three tabs each tab is a Fragment. I wrote in the onCreateView method of my second fragment this toast message: public class SecondFragment extends Fragment{ @Nullable @Override public View…
HavanaSun
  • 446
  • 3
  • 12
  • 39
0
votes
1 answer

Angular Js redirect with toast message

when I click a button on a html with angular page I need to redirect to other. I use a javascript function and into it I call $location.path('/newValue') This work fine, but I can't see toast page 1 success message. I need show toast message and…
Andrea Merlin
  • 109
  • 2
  • 12
0
votes
1 answer

Creating an app - Java - create an arraylist from a .txt file and toast specific line of arraylist

what I am trying to do is create an array of strings that has 1000 or so entries. Instead of doing: public void DefaultGeneric(View v) throws FileNotFoundException{ Random rand = new Random(); int i = rand.nextInt(4) + 0; int j =…
Tyler
  • 1
  • 2
0
votes
2 answers

Toast inside thread during heavy workload task

I am updating a database (SQLite) with a lot of data, which takes several minutes. I am doing this on a Thread. At the same time I want to show the progression of the updates (25%, 50%, etc.) through a Toast. Since I am within a thread, I need to…
Xema
  • 1,796
  • 1
  • 19
  • 28
0
votes
0 answers

Capture Nested HTML DIV Element Event via JavaScript

In looking to make a small JavaScript application a little more dynamic, I need to be able to capture a particular event on a webpage, that displays an HTML toaster popup on the success of resetting one's password. It looks like this:
DesignerMind
  • 410
  • 4
  • 8
  • 29
0
votes
1 answer

Angular Toaster not showing title or text

I am using the toaster directive on my AngularJS web project. Everything is configured as in the documentation; this is, on my view I have the container declared as follows.
Farid Hajnal
  • 253
  • 4
  • 15
0
votes
1 answer

I'm unable to show toast message using addListenerOnButton

I am learning android. I am facing problem while displaying toast message upon button click. I am basically trying to display the password field's text upon a button click. Java file public class MainActivityToast extends AppCompatActivity { …
Ojal
  • 3
  • 2
0
votes
3 answers

show toast msg from a non-activity class which is called by a service class

I have a service class MyService and its method MyMethod in which Class B(non activity) is instantiated and class B's method is called. the method displays a toast msg public class MyService extends Service { public void MyMethod() { B b=new…
Jana
  • 189
  • 1
  • 3
  • 13
0
votes
1 answer

AngularJS toaster individual toast position

I have configured toasts globally in html and here is how i pop them core.toaster.pop({ type: 'info', …
Laza92
  • 3
  • 4
0
votes
1 answer

Why does Toast.makeText is not accepting formatted text?

Being a begginer in android , i have been stuck while using Toast.makeText ,here is the code. public class CustomOnSelectedListen implements OnItemSelectedListener{ public void onItemSelected(AdapterView parent, View view,int pos,long id){ …
Blizzard
  • 3
  • 2