Select a picture to rename--set the picture as the contact icon--once again with the same picture renamed--When you set it to another contact Avatar to watch, the prompt cannot load this picture
Root cause: When the user goes to rename, gallery cannot receive the notification of data Chang, so the localimage filepath cannot be updated, resulting in the inability to load the picture.
Solution:cropimage before loading the picture, the first will go to the query image filepath and update.
Specific code:
Alps\packages\apps\gallery2\src\com\android\gallery3d\app\cropimage.java in the Getmediaitemfromintentdata () method:
Approx. 1404 lines:
try{
c = getcontentresolver (). Query (URI,
New string[] {Images.ImageColumns.ORIENTATION, Images.ImageColumns.DATA},
NULL, NULL, NULL);
if (c! = null && C.movetofirst ()) {
((localimage) item). Rotation = C.getint (0);
((localimage) item). FilePath = c.getstring (1);
}
}...
Android picture renamed after set as contact prompt could not load this picture