码迷,mamicode.com
首页 > 移动开发 > 详细

android Gmail查看图片时选择经信息(彩信)分享,手机报错或手机报错后又回到查看图片界面

时间:2014-08-26 15:34:06      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:android   myanmar khmer   

在Packages\apps\mms\src\com\android\mms\ui\UriImage.java
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();
                }
                /// @}

android Gmail查看图片时选择经信息(彩信)分享,手机报错或手机报错后又回到查看图片界面

标签:android   myanmar khmer   

原文地址:http://blog.csdn.net/sergeycao/article/details/38847359

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!