私は現在Androidプロジェクトに取り組んでおり、メールを送信できるように設定を追加しています。私はACTION_SENDTO
メールを送信するためにインテントを使用していますが、メールが戻ってきて、と言いNo apps can perform this action
ます。
以下は私が使用しているコードです
Intent intent = new Intent(Intent.ACTION_SENDTO);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_EMAIL, "someone@example.com");
intent.putExtra(Intent.EXTRA_SUBJECT, "Check out this android app");
intent.putExtra(Intent.EXTRA_TEXT, "Check out this new app in the Google Play Store. Its from Boardies IT Solutions and is called Boardies Password Manager. You can find it at https://play.google.com/store/apps/details?id=com.BoardiesITSolutions.PasswordManager");
startActivity(Intent.createChooser(intent, "Send Email"));
あなたが提供できるどんな助けにも感謝します