I am sending an email by attaching a file with an email address in the following code. I can not get the correct email address in my inbox in the return
Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("image/jpeg"); intent.putExtra(Intent.EXTRA_EMAIL, emailAddressList); intent.putExtra(Intent.EXTRA_SUBJECT, emailSubject); intent.putExtra(Intent.EXTRA_TEXT, emailText); intent.putExtra(Intent.EXTRA_TEXT, emailText); intent.putExtra(Intent.EXTRA_STREAM, Uri.parse("android.resource://"+ getPackageName() + "/" + R.drawable.pic)); Log.v(getClass().getSimpleName(), "sPhotoUri=" + Uri.parse("android.resource://"+ getPackageName() + "/" + R.drawable.pic)); startActivity(Intent.createChooser(intent, "Choice App to send email:"));
In the inbox, the result will be the same as the image.
H !1AQaq " 2 B# Rb3 r CS$ c %!1AQq"2aB
source share