Android Toast Tutorial – The Ultimate Guide To Learn

0
513

Android Toast Tutorial

This Android Toast Tutorial is about how to create custom toast message in android app. In this example creating a custom toast message
android.widget.Toast class used to create toast alert message.
Toast alert is a notification message that display for certain amount of time, and automatically fades out after set time. and we also decide where to show Toast Message from whole full screen for specific space.

Use of Toast:
– To show alert message to user.
– For debugging your application.
– Use toast alert message to show alert from background sevice, boadcast reciever, getting data from server…etc.

Here we show how to decide where to put Toast message, for that we take axis ‘X’ and axis ‘Y’.

According to that just write this below code in MAinActivity.java

Download Full source code from here

Finally, Run On Emulator/Device and see the output.

android toast

FOR ANY QUERY OR SUGGESTION PLEASE COMMENT BELOW!!..

LEAVE A REPLY