Android アプリケーションからメール クライアントのみを介してメールを送信する方法。
私は自分のアプリケーションで以下のコードを使用していますが、opeing messeges
それbluetooth
も. Gmail
またはのような電子メール クライアントのみが必要yahoo
です。
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("text/rfc822");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, "mailto@gmail.com");
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "My subject");
startActivity(Intent.createChooser(emailIntent, "Email:"))