开发者

Android Toast doesnt show up

I am trying to show toast on inserting content into the database. and then it finishes the acti开发者_如何学Cvity.

  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


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

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜