草庐IT

emailIntent1

全部标签

android - 启动 ACTION_SEND Intent 时如何附加位图

我有这个代码:Intentintent=newIntent();intent.setAction(Intent.ACTION_SEND);startActivity(intent);这将在Android上成功启动消息应用程序。但是在启动Intent时如何附加位图对象?我已阅读http://developer.android.com/reference/Android/content/Intent.html,我需要的壁橱里的东西是EXTRA_STREAM,像这样:intent2.putExtra(Intent.EXTRA_STREAM,_uri);但在我的情况下,我有一个Bitmap对象

android - 启动 ACTION_SEND Intent 时如何附加位图

我有这个代码:Intentintent=newIntent();intent.setAction(Intent.ACTION_SEND);startActivity(intent);这将在Android上成功启动消息应用程序。但是在启动Intent时如何附加位图对象?我已阅读http://developer.android.com/reference/Android/content/Intent.html,我需要的壁橱里的东西是EXTRA_STREAM,像这样:intent2.putExtra(Intent.EXTRA_STREAM,_uri);但在我的情况下,我有一个Bitmap对象

android - 如何在使用 emailIntent 发送电子邮件后自动隐藏键盘

有一个页面,用户可以在其中发送电子邮件、短信或在需要时给客人打电话。问题在于,当用户向其客人发送电子邮件时,键盘不会隐藏。即使我在解决问题时遇到了一个小问题,但似乎仍然很难找到类似的帖子来解决它。我也会制作屏幕截图并将它们放在这里。如您所见,发送邮件后键盘并没有隐藏。 最佳答案 IntentsendIntent=newIntent(Intent.ACTION_SEND);sendIntent.setType("text/plain");sendIntent.putExtra(Intent.EXTRA_EMAIL,newString[