android 微信分享详情,android面试八股文

// imgObject.imageData = Util.bmpToByteArray(thumbBmp, true);

// imgObject.imageUrl=shareFilePath;

// } catch (IOException e) {

// e.printStackTrace();

// }

// }

// }.start();

// }else{

// //本地路径

// Bitmap bmp = BitmapFactory.decodeFile(shareFilePath);

// Bitmap thumbBmp = Bitmap.createScaledBitmap(bmp,99,99, true);

// bmp.recycle();

// imgObject.imagePath=shareFilePath;

// imgObject.imageData = Util.bmpToByteArray(thumbBmp, true);

// imgObject.imageUrl=shareFilePath;

// }

Bitmap bmp = BitmapFactory.decodeFile(shareFilePath);

Bitmap thumbBmp = Bitmap.createScaledBitmap(bmp,99,99, true);

bmp.recycle();

imgObject.imagePath=shareFilePath;

imgObject.imageData = Util.bmpToByteArray(thumbBmp, true);

imgObject.imageUrl=shareFilePath;

}else{

Bitmap bmp =BitmapFactory.decodeResource(//

UiUtils.getInstance().getContext().getResources(), R.mipmap.ic_launcher_logo);

Bitmap thumbBmp=Bitmap.createScaledBitmap(bmp, 99, 99, true);

bmp.recycle();

imgObject.imagePath=shareFilePath;

imgObject.imageData = Util.bmpToByteArray(thumbBmp, true);

imgObject.imageUrl=shareFilePath;

}

// if(!FileUtils.getInstance().isExistsFile(MyApplication.shareZinCodePath)){

// try {

// FileUtils.getInstance().writeToDir(getAssets().open(“mine_share_code.png”),MyApplication.shareZinCodePath);

// } catch (IOException e){

// e.printStackTrace();

// }

// }

// Bitmap bmp =BitmapFactory.decodeFile(MyApplication.shareZinCodePath);

// Bitmap thumbBmp=

《Android学习笔记总结+最新移动架构视频+大厂安卓面试真题+项目实战源码讲义》

【docs.qq.com/doc/DSkNLaERkbnFoS0ZF】 完整内容开源分享

Bitmap.createScaledBitmap(bmp, 99, 99, true);

// imgObject.imagePath=MyApplication.shareZinCodePath;

// imgObject.imageData=Util.bmpToByteArray(thumbBmp, true);

// imgObject.imageUrl=MyApplication.shareZinCodePath;

// bmp.recycle();

msg.thumbData=imgObject.imageData;

//待定

msg.title = “测试app”;

msg.descrip

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值