Harsha M V
Harsha M V

Reputation: 54949

Android Toast doesnt show up

I am trying to show toast on inserting content into the database. and then it finishes the activity.

  1. Send Mail
  2. Store Mail in Db
  3. If Successfull show Toast for 10sec
  4. finish(); Activity and return to the previous one.

code: http://pastebin.com/6aBjwCFh

Upvotes: 0

Views: 591

Answers (1)

ccheneson
ccheneson

Reputation: 49410

You need to show() your toast to display it:

Toast.makeText(ComposeActivity.this, "Mail Sent to " + tousername, 10).show();

Upvotes: 6

Related Questions