0

我正在尝试在向数据库中插入内容时展示 toast。然后它完成活动。

  1. 发邮件
  2. 将邮件存储在 Db 中
  3. 如果成功显示 Toast 10 秒
  4. 结束(); 活动并返回上一个。

代码: http: //pastebin.com/6aBjwCFh

4

1 回答 1

6

你需要show()toast 来显示它:

Toast.makeText(ComposeActivity.this, "Mail Sent to " + tousername, 10).show();
于 2010-12-27T12:27:55.523 回答