Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Toast Alert Dialog is not displaying in ListView

Tags:

android

I wrote an Application in which we can add items to the list view..i'm doing validation for that if any one making the same entry it should display an alert

Toast.makeText(getApplicationContext(), "Serial No Already Exist..",Toast.LENGTH_LONG);

But it not displaying while I'm running on emulator. I'm sure that my validation code is correct.

like image 397
Saku Avatar asked Dec 07 '25 04:12

Saku


1 Answers

Try:

Toast.makeText(getApplicationContext(), "Serial No Already Exist..",Toast.LENGTH_LONG).show();
like image 134
Sardor Dushamov Avatar answered Dec 08 '25 16:12

Sardor Dushamov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!