微信分享图片+文字到朋友圈

ComponentName comp = new ComponentName("com.tencent.mm", "com.tencent.mm.ui.tools.ShareToTimeLineUI");
    intent.setComponent(comp);
    intent.setAction(Intent.ACTION_SEND);
    intent.setType("image/*");
    intent.putExtra(Intent.EXTRA_TEXT, msg);
    intent.putExtra("Kdescription", msg);
    ContentResolver cr = ZJApplication.getInstance().getContentResolver();
    String url = MediaStore.Images.Media.insertImage(cr, PictureHelper.getBitMapFromResource(R.drawable.ic_launcher), "share.png", "");
    intent.putExtra(Intent.EXTRA_STREAM, Uri.parse(url));

你可能感兴趣的:(图片)