I am trying to show toast on inserting content into the database. and then it finishes the acti开发者_如何学Cvity.
- Send Mail
- Store Mail in Db
- If Successfull show Toast for 10sec
- finish(); Activity and return to the previous one.
code: http://pastebin.com/6aBjwCFh
You need to show()
your toast to display it:
Toast.makeText(ComposeActivity.this, "Mail Sent to " + tousername, 10).show();
精彩评论