Android 用户如何在挂号信上发送重新定向的邮件?

Android 用户如何在挂号信上发送重新定向的邮件?,android,Android,在POST请求后,我从json获得以下链接: 当用户单击“登录”按钮时,我想通过电子邮件发送此链接?您可以使用电子邮件意图发送链接 Button login; String emaillink = "http://kartpay.net/inde.php?dispatch=auth.ekey_login&ekey=9d19e143037830a8d2d17f564997f394&company_id=0&redirect_url=http%3A%2F%2Fkartp

在POST请求后,我从json获得以下链接:


当用户单击“登录”按钮时,我想通过电子邮件发送此链接?

您可以使用电子邮件意图发送链接

  Button login;
String emaillink = "http://kartpay.net/inde.php?dispatch=auth.ekey_login&ekey=9d19e143037830a8d2d17f564997f394&company_id=0&redirect_url=http%3A%2F%2Fkartpay.net%2Fbigbuys-latest%2Findex.php\"";

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_checking_intent);
    login = (Button) findViewById(R.id.button);
    login.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {

            Intent i = new Intent(Intent.ACTION_SEND);
            i.setType("message/rfc822");
            i.putExtra(Intent.EXTRA_EMAIL  , new String[]{"recipient@example.com"});
            i.putExtra(Intent.EXTRA_SUBJECT, "subject of your email");
            i.putExtra(Intent.EXTRA_TEXT   , emaillink);
            try {
                startActivity(Intent.createChooser(i, "Send mail..."));
            } catch (android.content.ActivityNotFoundException ex) {
                Toast.makeText(CheckingIntent.this, "There are no email app installed.", Toast.LENGTH_SHORT).show();
            }
        }
    });
}