Send email through Intent : SecurityException
问题 Here is how I'm sending email through Gmail App. Intent emailIntent = new Intent(Intent.ACTION_SEND); emailIntent.setClassName("com.google.android.gm", "com.google.android.gm.ComposeActivityGmail"); emailIntent.setType("text/html"); emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Puzzle"); emailIntent.putExtra(Intent.EXTRA_TEXT, someTextHere)); emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(attachmentFile)); try { startActivityForResult(emailIntent, SHARE_PUZZLE_REQUEST_CODE); } catch