我想在facebook、twitter、google+和我的android应用程序中通过电子邮件分享文本。我已经搜索并找到了以下代码:
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType("plain/text");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, "My text");
startActivity(Intent.createChooser(sharingIntent,"Share using"));我使用的是谷歌模拟器API8平台2.2。我在我的模拟器上安装了facebook和g+,我还配置了我的gmail帐户。当我点击上面写有代码的分享按钮时,我没有得到一个菜单来选择分享,使用: facebook,g+,gmail。相反,它直接使用我的gmail帐户来分享..模拟器有什么问题吗??我做错了什么??请帮帮我。
发布于 2012-07-31 23:31:06
请尝试在此处学习本教程:http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/
也许你漏掉了什么步骤。
https://stackoverflow.com/questions/11743635
复制相似问题