When viewing images in android Gmail, select "share via message (MMS)". When an error is reported on the mobile phone or an error is reported on the mobile phone, the system returns to the image display page.
In Packages \ apps \ mms \ src \ com \ android \ mms \ ui \ UriImage. java
Find this code for the initFromContentUri function:
/// 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 ));
///@}
Changed:
/// 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 ();
}
///@}