没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Yaris35AT&T Drive show black screen issue
analysis report
一、问题现象
在 contacts 中添加一个新的联系人,为新的联系人选择一个 icon,在弹出的 documents 窗口
中选择 drive,在 drive 中选择一个图片,然后出现一段时间的黑屏。
Platform:MT6572
Android 版本:4.4KK
BuildType:user
系统软件版本:SWC9G+UAG0
系统 RAM:512M
二、关键 log 以及相关代码
handlePhotoActivityResult 函数会在 onActivityResult 中调用,onActivityResult 在选择完一张图
片后调用
//handlePhotoActivityResult 函数的关键代码
final Uri toCrop;
logInfo("[handlePhotoActivityResult] isWritable=" + isWritable);
if (isWritable) {
// Since this uri belongs to our file provider, we know that it is writable
// by us. This means that we don't have to save it into another temporary
// location just to be able to crop it.
toCrop = uri;
} else {
toCrop = mTempPhotoUri;
try {
if (null != toCrop) {
//等待在 savePhotoFromUriToUri 函数中
ContactPhotoUtils.savePhotoFromUriToUri(mContext, uri,
toCrop, false);
}
} catch (SecurityException e) {
logInfo("[handlePhotoActivityResult] Did not have read-access to uri : " + uri);
return false;
}
}
logInfo("[handlePhotoActivityResult] toCrop=" + toCrop);
资源评论
- 龙川魂2017-12-18很不错,正在学习
Vincent_Song
- 粉丝: 1112
- 资源: 73
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功