首页 > 代码库 > android Gmail查看图片时选择经信息(彩信)分享,手机报错或手机报错后又回到查看图片界面
android Gmail查看图片时选择经信息(彩信)分享,手机报错或手机报错后又回到查看图片界面
在Packages\apps\mms\src\com\android\mms\ui\UriImage.java
initFromContentUri函数
initFromContentUri函数
请找到这段代码:
/// M: Code analyze 003, For fix bug ALPS00278013, send the Mms
// with a image from phone to email,but the image name changed
// to number and the suffix is lost when received. @{
// filePath = uri.getPath();
filePath = c.getString(
c.getColumnIndexOrThrow(Images.Media.DATA));
/// @}
改为:
/// M: Code analyze 003, For fix bug ALPS00278013, send the Mms
// with a image from phone to email,but the image name changed
// to number and the suffix is lost when received. @{
// filePath = uri.getPath();
try {
filePath = c.getString(
c.getColumnIndexOrThrow(Images.Media.DATA));
} catch (IllegalArgumentException e){
filePath = uri.getPath();
}
/// @}
/// M: Code analyze 003, For fix bug ALPS00278013, send the Mms
// with a image from phone to email,but the image name changed
// to number and the suffix is lost when received. @{
// filePath = uri.getPath();
filePath = c.getString(
c.getColumnIndexOrThrow(Images.Media.DATA));
/// @}
改为:
/// M: Code analyze 003, For fix bug ALPS00278013, send the Mms
// with a image from phone to email,but the image name changed
// to number and the suffix is lost when received. @{
// filePath = uri.getPath();
try {
filePath = c.getString(
c.getColumnIndexOrThrow(Images.Media.DATA));
} catch (IllegalArgumentException e){
filePath = uri.getPath();
}
/// @}
android Gmail查看图片时选择经信息(彩信)分享,手机报错或手机报错后又回到查看图片界面
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。