android开发 请问用qq分享文件怎么分享sdk例子上都是些 分享图片音乐什么的 不知道文件应该怎么分享
finalBundleparams=newBundle();//params.putString(QQShare.SHARE_TO_QQ_TITLE,"biaoti");...
final Bundle params = new Bundle();
// params.putString(QQShare.SHARE_TO_QQ_TITLE, "biaoti"); // //params.putString(QQShare.SHARE_TO_QQ_TARGET_URL, "http://m.baidu.com/");
// params.putString(QQShare.SHARE_TO_QQ_SUMMARY, "SHARE_TO_QQ_SUMMARY");
// params.putString(QQShare.SHARE_TO_QQ_APP_NAME, "SHARE_TO_QQ_APP_NAME");
// params.putString(QQShare.SHARE_TO_QQ_EXT_INT, "SHARE_TO_QQ_EXT_INT");
// params.putString(QQShare.SHARE_TO_QQ_EXT_STR, "SHARE_TO_QQ_EXT_STR");
// params.putString(QQShare.SHARE_TO_QQ_KEY_TYPE, "SHARE_TO_QQ_KEY_TYPE"); //params.putString(QQShare.SHARE_TO_QQ_SITE, "SHARE_TO_QQ_SITE"); MainTabActivity.mTencent.shareToQQ(ProjectManagerActivity.this, params, qqShareListener);
这个params 应该怎么写呢 分享文件的话 展开
// params.putString(QQShare.SHARE_TO_QQ_TITLE, "biaoti"); // //params.putString(QQShare.SHARE_TO_QQ_TARGET_URL, "http://m.baidu.com/");
// params.putString(QQShare.SHARE_TO_QQ_SUMMARY, "SHARE_TO_QQ_SUMMARY");
// params.putString(QQShare.SHARE_TO_QQ_APP_NAME, "SHARE_TO_QQ_APP_NAME");
// params.putString(QQShare.SHARE_TO_QQ_EXT_INT, "SHARE_TO_QQ_EXT_INT");
// params.putString(QQShare.SHARE_TO_QQ_EXT_STR, "SHARE_TO_QQ_EXT_STR");
// params.putString(QQShare.SHARE_TO_QQ_KEY_TYPE, "SHARE_TO_QQ_KEY_TYPE"); //params.putString(QQShare.SHARE_TO_QQ_SITE, "SHARE_TO_QQ_SITE"); MainTabActivity.mTencent.shareToQQ(ProjectManagerActivity.this, params, qqShareListener);
这个params 应该怎么写呢 分享文件的话 展开
2014-12-01
展开全部
Intent share = new Intent(Intent.ACTION_SEND);
ComponentName component = new ComponentName("com.tencent.mobileqq","com.tencent.mobileqq.activity.JumpActivity");
share.setComponent(component);
File file = new File(Environment.getExternalStorageDirectory()+ "/001.jpg");
System.out.println("file " + file.exists());
share.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file));
share.setType("*/*");
startActivity(Intent.createChooser(share, "发送"));
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询