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
0 answers

Win 10 Toast Notifications not staying in action center

I created a WPF-Project in VS 2015 and I was able to include references to the Win 10 libraries. I created a test button which successfully creates and shows a toast notification. The problem is after the 5 seconds of showtime the toast disappears…
0
votes
3 answers

Press back button twice to exit an AIR android application

I've noticed this pattern in a lot of Android apps and games recently: when clicking the back button to "exit" the application, a Toast comes up with a message similar to "Press BACK again to exit". After a long time searching, I find an ANE…
Selena
  • 23
  • 3
0
votes
1 answer

are android toast messages forced to wrap_content layout_width?

I'm creating a custom view to use with android.widget.Toast.setView(), but no matter how I size the view, everything seems to be laid out using "wrap_content" as the layout width setting. For example, whether I set the view's root layout…
alpartis
  • 1,086
  • 14
  • 29
0
votes
1 answer

Android: How to Pass task.getexception to Material Dialog

How do I pass/get a task.getexeption as a string to a custom dialog? I am attempting to pass the !task.isSuccessfull() exception to the authFailDialog instead of using toast and not sure how to do it (It's been 5yrs since Iv'e worked with…
user742030
0
votes
1 answer

Get the title of the toast when the toast notification is removed from action center in UWP

I have an application which is able to send three different types of local toasts,using the notifier.Show(toast) method.I need to track the notification title and current time when the notification is removed from the action center.I have registered…
Vishnu s
  • 261
  • 2
  • 18
0
votes
2 answers

getText(R.string.really).tostring() doesn't work in a Toast

I'm a little bit speechless. I have activity A and B. When I'm in B and get the method deleteItemOption( much input ) then the Toast crashes my app :D if I open the method in activity A everything is fine. But I need the method in activity A and B,…
Niklas
  • 45
  • 7
0
votes
2 answers

Android - Make Toast from static method

I'm trying to pass a string from a separate static java class, to a method inside my Blankfragment.java this is the method inside the blankFragment.java, the problem is that it can't access getContext() which is non static. public static void…
Jon
  • 27
  • 7
0
votes
4 answers

How to show a Toast with the content of an EditText

I am using an EditText and a Button, when the Button is clicked, the content of the EditText should be shown in a Toast message. Here is what I tried so far: public void cLickFuntion(View view){ EditText…
Asad Afridi
  • 11
  • 1
  • 1
0
votes
1 answer

UWP Windows C# App BackgroundTask

I would like to create an application that use Windows 10 Toast Notification with Pushbullet API, I saw on differents sites that I should use Background Task of uwp app but I would like to execute the background task manually. I sorry I haven't code…
C. MARTIN
  • 43
  • 12
0
votes
1 answer

Cannot show toast from a non-activity class (Android)

I wrote a messaging application and I want to notify users when some other user message them. But I cannot keep track of it in my ContactListActivity so I try to show it in my connection.java class.(Simply, pop-up a text when viewing contactList if…
Prethia
  • 1,183
  • 3
  • 11
  • 26
0
votes
1 answer

Unable to get toastr to work in my mvc application

I am trying to use toastr in my mvc application. When I downloaded from Nuget I found the two files added to my scripts folder toastr.js toastr.min.js I added the .js file to my layout page
Baba
  • 2,059
  • 8
  • 48
  • 81
0
votes
2 answers

Dynamically modify layout of a toast Android

I have a trouble creating my app in Android Studio, I explain myself I created a layout for my toast, the XML looks like this
0
votes
1 answer

Show custom toast over the layout like AppMsg

I want to show custom toast message on the top of the layout, LIKE e.g - when there is "No Internet connection." For that thing I am using AppMsg library from here. But this library has few issues like it keeps showing message forever. I need the…
Gaurav Arora
  • 8,282
  • 21
  • 88
  • 143
0
votes
1 answer

Xamarin Forms: Toasts.Forms.Plugin error

I used Toasts.Forms.Plugin by EgorBo in a project and it was working fine. I added it in a new project but I can't find ToastNotification or IToastNotification and the toast doesn't appear. My Xamarin.Forms version is 2.3.2.127 and your component is…
Enrico
  • 3,592
  • 6
  • 45
  • 102
0
votes
2 answers

Picasso - Showing Toast/Message when image saved to disk

I am using picasso to save image to disk on tap of a button by the user and I want to generate a feedback in the form of a Toast to the user that the image has been downloaded. For this, I am trying to run a toast on the UI Thread by using the…
Divij Sehgal
  • 647
  • 2
  • 11
  • 26