https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/Android.html
String path = Environment.getExternalStorageDirectory().getAbsolutePath() + "/test.png";
File file = new File(path);
WXImageObject imgObj = new WXImageObject();
imgObj.setImagePath(path);
WXMediaMessage msg = new WXMediaMessage();
msg.mediaObject = imgObj;
msg.title="abc-title";
msg.description="dhsajkdhkashdkahskda";
Bitmap bmp = BitmapFactory.decodeFile(path);
Bitmap thumbBmp = Bitmap.createScaledBitmap(bmp, 200, 200, true);
bmp.recycle();
msg.thumbData = bmpToByteArray(thumbBmp, true);
SendMessageToWX.Req req = new SendMessageToWX.Req();
req.transaction = "img"+System.currentTimeMillis();
req.message = msg;
req.scene = SendMessageToWX.Req.WXSceneTimeline ;
IWXAPI api = WXAPIFactory.createWXAPI(WebViewActivity.this, "app-key");
api.sendReq(req);
设置了标题和描述,但实际没有效果,默认文字一直为空
你好,麻烦提供复现问题的链接,再重现一次,在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,提供一下微信号,复现问题的详细时间点