New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Calkulin
Old
(Last edited by Calkulin; 7th July 2012 at 04:24 PM.)
#1  
Calkulin's Avatar
Recognized Developer - OP
Thanks Meter 5638
Posts: 1,254
Join Date: Sep 2008

 
DONATE TO ME
Default [MOD] Improve Synced Contacts Picture Resolution

Here's a mod to improve the resolution of synced contact pictures, so no more pixelated pics Now I have only tested this with exchange contacts as that is what I use but from what I read, Gmail saves it in a 96x96 format on their end, so this might not help too much if you use that but test and post if it does or not.

After applying this mod, you will need to either clear data on contacts storage or remove & readd the e-mail account that has your contacts so it imports them with the new resolution.




And for the devs, the mod is actually quite simple, decompile the ContactsProvider apk and mod these values in the values/integers.xml but please remember to give credit
Code:
<integer name="config_max_display_photo_dim">2048</integer>
<integer name="config_max_thumbnail_photo_dim">768</integer>
Flash in recovery
If you like my work, donate to buy me a beer or 2

The Following 25 Users Say Thank You to Calkulin For This Useful Post: [ Click to Expand ]
 
markandmyia
Old
#2  
markandmyia's Avatar
Senior Member
Thanks Meter 15
Posts: 111
Join Date: Apr 2009
Thanks. :)

Sent from my HTC One X using Tapatalk 2
 
buddy17
Old
(Last edited by buddy17; 7th July 2012 at 10:59 PM.)
#3  
Senior Member
Thanks Meter 33
Posts: 480
Join Date: Aug 2010
seems to be working well for me, pictures aren't perfect but still an improvement. Thanks!

edit: using gmail, and after looking closer, doesn't seem to have made a difference.

Since you are messing with the contacts app, can i direct you to this thread and see what you think??

http://forum.xda-developers.com/show....php?t=1727196
 
l3l2ad
Old
#4  
Member
Thanks Meter 0
Posts: 38
Join Date: Jun 2010
Location: Durham
Default E4GT

Nice! Any chance this will make it to ht EG4T?
Active : Samsung Epic 4g Touch running [ Calkulin's E4GT 2 v1.6 [ ICS l FE22 l Tweaked l Battery Saver Script ]
Retired : HTC Evo 3D || HTC Evo 4G

 
phatboypat
Old
#5  
phatboypat's Avatar
Senior Member
Thanks Meter 288
Posts: 794
Join Date: Mar 2011
Location: Nor Cal
I don't see any difference with Google contacts.

Sent from my HTC One X using Tapatalk 2
CURRENT DEVICES: Kindle Fire- One X- Nexus 7

History: Nokia 5110 Nokia 3510 Ericcson T68 Nokia 6102 Palm Treo 680 Nokia N95 HTC Nexus One Motorola Artix HTC One X(L) Nexus 7
 
john9
Old
#6  
Account currently disabled
Thanks Meter 263
Posts: 1,591
Join Date: Oct 2011
Looks awesome. Downloading..
 
donatom3
Old
#7  
Senior Member
Thanks Meter 142
Posts: 1,808
Join Date: Oct 2007
Location: Costa Mesa, CA
Quote:
Originally Posted by phatboypat View Post
I don't see any difference with Google contacts.

Sent from my HTC One X using Tapatalk 2
As posted in the op, Gmail saves contacts at 96x96, you'll never make them look pretty until Google changes that. Your contacts would have to have a picture up on Google+ for higher resolution pictures.
The Following User Says Thank You to donatom3 For This Useful Post: [ Click to Expand ]
 
phatboypat
Old
#8  
phatboypat's Avatar
Senior Member
Thanks Meter 288
Posts: 794
Join Date: Mar 2011
Location: Nor Cal
Quote:
Originally Posted by donatom3 View Post
As posted in the op, Gmail saves contacts at 96x96, you'll never make them look pretty until Google changes that. Your contacts would have to have a picture up on Google+ for higher resolution pictures.
I saw that, just confirming it wasn't working.

Sent from my HTC One X using Tapatalk 2
CURRENT DEVICES: Kindle Fire- One X- Nexus 7

History: Nokia 5110 Nokia 3510 Ericcson T68 Nokia 6102 Palm Treo 680 Nokia N95 HTC Nexus One Motorola Artix HTC One X(L) Nexus 7


XDA PORTAL POSTS

What’s Possible with CASUAL & How to Make Your Own CASUAL – XDA Developer TV

XDA Elite Recognized Developer AdamOutler is known … more

Pearl Chen to Talk NFC Development at XDA:DevCon 2013

From HTML to LEDs or Android to Arduino, Hardware Hacking is a pastime of many people … more

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more