我正在使用下一个代码来支持在我的应用程序中共享:
//create the send intent
Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
//set the type
shareIntent.setType("text/plain");
//add a subject
shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"subject");
String msg = https://play.google.com/store/apps/detailsid=com.rovio.amazingalex.premium
//add the message
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, msg);
//start the chooser for sharing
startActivity(Intent.createChooser(shareIntent, "Sharing..."));
即使我这边没有任何额外的图像,
facebook 拍了一张随机图片,它不是我的应用程序的一部分,但有点与之相关。
例如,当尝试分享“Amazing Alex”时,这是附件图片:
如何更改此图片?
最佳答案
代替
字符串消息 = https://play.google.com/store/apps/detailsid=com.rovio.amazingalex.premium
你应该使用下面的
字符串消息 = https://market.android.com/search?q=pname:com.rovio.amazingalex.premium
关于android - Facebook 共享中的错误图像 - 使用共享 Intent 时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11705243/