【问题标题】:Using gmail for sending feeding through app使用 gmail 通过应用程序发送馈送
【发布时间】:2016-08-15 12:07:29
【问题描述】:

我想将 gmail 包含在我正在构建的 android 应用程序中,以便它可以用作从用户那里获取对特定 gmail 的反馈。有没有办法。

【问题讨论】:

    标签: android gmail user-feedback


    【解决方案1】:

    如果我理解正确,您需要一个可以打开默认电子邮件应用程序并填充您的地址的按钮。对吧?

    如果是这样,那么你可以这样做:

    Intent emailIntent = new Intent();
    emailIntent.setType("message/rfc822");
    emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] {"your.email@gmail.com"});
    emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Your subject");
    emailIntent.setAction(Intent.ACTION_SEND);
    startActivity(emailIntent);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-06
      • 1970-01-01
      • 2021-01-17
      • 2017-10-06
      • 1970-01-01
      • 2014-02-23
      相关资源
      最近更新 更多