---
title: "微信分享图片+文字到朋友圈"
author: "buerkai"
date: "2014-07-25T12:47:03Z"
tags: []
categories: ["移动开发"]
slug: "untitled"
draft: false
lastmod: "2014-07-25T12:47:36Z"
id: 2096342
url: "https://buerkai.iteye.com/blog/2096342"
---

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));