Sha*_*sad 6 google-glass google-gdk
我正在尝试使用以下代码发送从Glass获取的图像...
Intent emailIntent = new Intent( android.content.Intent.ACTION_SEND);
emailIntent.setType("plain/text");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] {
"xyz@gmail.com" });
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "My Subject");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "My image attached");
emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(imageLocation));
startActivity(Intent.createChooser(emailIntent, "Send mail..."));
Run Code Online (Sandbox Code Playgroud)
但我得到"没有应用程序可以执行此操作".我相信Glass没有这样的意图.任何人都可以提供备用解决方案,以便我可以通过Glass发送电子邮件.
如果没有针对 Glass 的电子邮件,您将不得不以更原始的方式进行操作,此答案中有相关说明,包括带有附加图像的电子邮件,请注意有关互联网许可的部分:
在 Android 中使用 JavaMail API 发送电子邮件,而不使用默认/内置应用程序
| 归档时间: |
|
| 查看次数: |
489 次 |
| 最近记录: |