Androidからメールを送信しようとしています。
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setClassName("com.google.android.gm", "com.google.android.gm.ComposeActivityGmail");
emailIntent.setType("plain/text");
Toast.makeText(getApplicationContext(), "EMAIL CLIENt", Toast.LENGTH_LONG).show();
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{ "abc@gmail.com","xyz@gmail.com"});
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Help me !... Help Me....");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, turnONGps);
startActivity(emailIntent);
上記のコードは作成メールを開き、すべての詳細を入力しますが、メールは送信されません。マニフェストファイルも更新しました。
私も削除しました
> emailIntent.setClassName("com.google.android.gm",
> "com.google.android.gm.ComposeActivityGmail");
うまくいかなかった