Meggy Peter

Meggy Peter

  • 2.2k
  • 32
  • 2.2k

How to Add Item into List View from Toast message?

Mar 21 2023 5:23 PM

I working an App where In my MainActivity I added Toast message which display highest Loaded events. 

e.g: In MainActivity

  •  Toast.makeText(this, "Load Events" +, Toast.LENGTH_LONG).show();

Now, Next part when above toast message appear on the MainActivity screen it will add that event into SecoendActivity Listview 

  • How do i add toast message event into second activity listview?
  • will Mainactivity to SecondActivity?

Answers (3)