0

我有使用这样的分享意图,但我没有找到一种用图片发布我的游戏分数的方法,请帮助我?

Intent share = new Intent(Intent.ACTION_SEND);
                share.setType("text/plain");
                share.putExtra(Intent.EXTRA_TEXT,"I just scored 1000");
                share.putExtra(Intent.EXTRA_SUBJECT, "Comming Soon!!");
                startActivity(Intent.createChooser(share, "Share..."));
4

1 回答 1

0

尝试这样的事情:

Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareCaptionIntent.setType("image/*");

//game image
shareIntent.setData(gameImage);
shareIntent.putExtra(Intent.EXTRA_STREAM, gameImage);

//game score
shareCaptionIntent.putExtra(Intent.EXTRA_TITLE, "game score")

startActivity(Intent.createChooser(shareIntent, getString(R.string.share)));
于 2012-04-20T03:34:40.533 回答