我开发了一个应用程序。在此应用程序中,内容来自数据库。我在 textview 中获取的内容,我只想使用电子邮件等共享全部内容。
我怎样才能发送即分享我的可用内容。
我获得了所有共享选项,但无法共享屏幕上显示的内容。
如果您需要更多信息,请告诉我!
请帮助我!
提前致谢!
最佳答案
非常简单。您只需要输入您的 Intent 。
Intent emailIntent = new Intent(Intent.ACTION_SEND);
emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{"yourEmail@gmail.com"});
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Email Subject");
emailIntent.putExtra(Intent.EXTRA_STREAM,yourTextView.getText());
emailIntent.setType("text/html");
startActivity(emailIntent);
关于android - 如何使用共享选项在 textview 中共享可用内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24721889/