yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] akirah:
I've tried to add new column, and to move columns. Doesn't work.

Standard cyanogen one doesn't seem to have photos at least from what I see in sourcecode, changes are done to BT contact send.
[G1 Android Development] bpmtri:
Hi akirah,

Please make sure you have:

static final int MODE_ALL_CONTACTS = 10 | MODE_MASK_SHOW_PHOTOS;

to show the default picture, and

static final String[] CONTACTS_PROJECTION = new String[] {
People._ID, // 0
NAME_COLUMN, // 1
People.NUMBER, // 2
People.TYPE, // 3
People.LABEL, // 4
People.STARRED, // 5
People.PRIMARY_PHONE_ID, // 6
People.PRIMARY_EMAIL_ID, // 7
People.PRESENCE_STATUS, // 8
"photo_data", // 9
SORT_STRING, // 10
};

to have "Photo data". "photo_data" column must have index = 9.

I just try to read the source code and suggest you. Hope this help you to make it work.
[G1 Android Development] xenio2000:
Yep last Cyanogen Mod from github does not have Photos I misunderstood the x140d4n post

Ok the Contacts.apk posted from x140d4n works and it came from here a Chinese site...thanks for it.

http://www.kugou.me/

You can translate with google...

Looks like the mod with the picture is added by geesun (I think) to the Cyanogen Mod and this is the mod cm 4.2.3.1-geesunmod, if you download it and extract the Contacts.apk it works very well a little slow the first time but it is nice.

I did'n found this tweak here in XDA, another site that x140d4n give to me is http://www.androidin.net

I did't found any source... just the zip with the apk...

Xenio

REMOVE THE .ZIP EXTENSION
[G1 Android Development] akirah:
This is exactly what I've tried. But still photo is not retrieved from database.
[G1 Android Development] johnnylicious:
i installed it but it didnt work force close on contacts i delete original Contacts.apk and dalvik-cache and rebooted

any ideas? im tryin to get original one and still having issues lol
[G1 Android Development] akirah:
You get FC's when you push original one ?
[G1 Android Development] johnnylicious:
well im using the eclair theme 2.0 over cyan's 4.3.2.1 i tried pushing the original themed one back into system/app and still get error

hmm
[G1 Android Development] xenio2000:
I am trying to contact Geesun the Chinese developer, I hope he can help us...

I think that all the developers in XDA works only on ROMS?! :(
[G1 Android Development] akirah:
Well... That's very true.
[G1 Android Development] xenio2000:
I was using the Geesun mod of Contacts.apk and there is more than Photos in Contact list.

There is also a problem with the Letter Scroller, it doesn't work the letters are mixed...

EDIT: I get it... what are those Settings (a parser to show the City of caller, it works but it is in Chinese).

this is from the Chinese site (translated):

Contacts to strengthen amended as follows

1. Intelligent IP dial-up, according to city contacts dial 17951 (can be set)

2. Display to / go to Electric City

3. According to contact numbers, display contact city,

4. Show a missed call city.

5. For international calls, you can display the name of the country

6. For fixed-line telephone, +86 and so on, can handle

7. For used phones, you can also display, such as 138001380000,10086,95528, etc.

8. The first time required to set up your own IP dial-up number and their phone numbers, default is 17951 / Shanghai

9. Database is small, query speed.

10. The database updated to 2009.5, all data come from the Internet, without encryption, you can free to use.

11. To contact data will not be damaged.

12. Have joined the contact picture.
[G1 Android Development] TemporalShadows:
Aside from the contact pics, the other mod I wanted to look at (once I've got a build env set up) is to add the extra call log info, as shown here. I'm tired of using Exact Call Log to see exactly when someone called me, I'd rather it be built in.

Hopefully Geesun will get back to you with his source code, it would save some work and get us some extra features!
[G1 Android Development] cojonesx:
I just installed the version from post #16 and it works for me, a few other items I noticed:

It groups your Call Log and moves the icons to the right

Call Log now has a summary page when you click on a contact from there

Favorites gets a scroll handle thingy

Some of my contacts have chinese text on their view page to the right of their name, cant figure out why
[G1 Android Development] x140d4n:
put a "+" on ur contact' phone number and see what happeded..
[G1 Android Development] johnnylicious:
how did you guys instal the new contacts.apk did you remove the first one?

adb push into system/app or adb install

i couldnt get it to work earlier :/
[G1 Android Development] Renarudo:
Copied the Contacts.apk file posted on the previous page to my /tools folder and ran these commands

adb shell rm /system/app/Contacts.apk

adb install c:\users\Renarudo\Android\Tools\Contacts.apk

Got this message:

Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]

Yeowch.

I pulled the packages.xml file using this command:

adb pull /data/system/packages.xml c:\Users\Renarudo\Android\Tools\packages.xml

Tried to edit out the <package> info for Contacts, and that didn't help either.

I backed up Cyanogen's latest build and loaded the Chinese Contacts.apk file in there and tried to flash it, but I get the error;

E: Wrong digest:

/system/app/Contacts.apk

E: Verification failed

Installation aborted.

Doh!
[G1 Android Development] JackD3ath:
It looks like maybe you didnt sign it?

I did the same process for AOSP Enom, the rom installed, but no contacts.

:(
[G1 Android Development] johnnylicious:
yeah i get the same error when tryin to install new contacts.apk
[G1 Android Development] G1-evolve:
terminal commands?
[G1 Android Development] geesun:
You can not install the system app like that.

If you have adb, we need install it like below:

adb remount

adb push Contacts.apk /system/app/Contacts.apk

if your device has the odex, pls remove it, otherwise, you can not make you system bootup.

Below is the patch for display photo on contact list, base on Cm Contacts code.

diff --git a/src/com/android/contacts/ContactsListActivity.java b/src/com/android/contacts/ContactsListActivity.java

index 2b74410..d0b6b94 100755

--- a/src/com/android/contacts/ContactsListActivity.java

+++ b/src/com/android/contacts/ContactsListActivity.java

@@ -178,8 +178,8 @@ public final class ContactsListActivity extends ListActivity

static final int MODE_QUERY = 60 | MODE_MASK_NO_FILTER;

/** Run a search query in PICK mode, but that still launches to VIEW */

static final int MODE_QUERY_PICK_TO_VIEW = 65 | MODE_MASK_NO_FILTER | MODE_MASK_PICKER;

-

- static final int DEFAULT_MODE = MODE_ALL_CONTACTS;

+ //Geesun

+ static final int DEFAULT_MODE = MODE_ALL_CONTACTS|MODE_MASK_SHOW_PHOTOS;

/**

* The type of data to display in the main contacts list.

@@ -1973,6 +1973,13 @@ public final class ContactsListActivity extends ListActivity

photo = BitmapFactory.decodeByteArray(photoData, 0,

photoData.length);

mBitmapCache.put(pos, new SoftReference<Bitmap>(photo));

+ //Geesun

+ if(photo == null){

+ int id = cursor.getInt(ID_COLUMN_INDEX);

+ Uri uri = ContentUris.withAppendedId(People.CONTENT_URI, id);

+ photo = People.loadContactPhoto(context, uri, R.drawable.ic_contact_list_picture, null);

+

+ }

} catch (OutOfMemoryError e) {

// Not enough memory for the photo, use the default one instead

photo = null;
[G1 Android Development] G1-evolve:
:eek: thiis ^
[G1 Android Development] xenio2000:
Wow... Thanks Geesun, your work on Contacts.apk is fantastic...

I'll try to use only your tweak for the contact photo...

Thanks again...

Xenio
[G1 Android Development] xenio2000:
Contacts.apk from latest CM with Geesun Tweak

Ok, I took the code from Geesun and added to the latest Cyanogen source Contacts (Eclair new icons) from github and here it is...

REMOVE .ZIP EXTENSION -> rename to Contacts.apk

backup first...

Just photos in contacts list, all the other feature Geesun added are not here.

I hope that Geesun will found the time to make an international version of his code.

Thanks

Xenio

EDIT:

the contacts_update.zip file is for UPDATE ON RECOVERY... Try it if works better for your Rom.
[G1 Android Development] Boonyard:
Great work guys! Any chance you could add this to Dwangs rom?:D
[G1 Android Development] akirah:
Thanks a lot Geesun, awesome work. Will you be commiting change to cyanogen tree?
[G1 Android Development] :
I can confirm this works with Dwangs rom perfect. The themed icon doesn't look right mind..
[G1 Android Development] Boonyard:
Did you just flash the .zip file posted above over the Dwang theme?
[G1 Android Development] xenio2000:
Check my post #35, there is now an UPDATE ON RECOVERY Version...

The icons are from Cyanogen Mod he is using the Eclair Icons now.

There is a bug with the Slider with the Initial Letter... there are no order, maybe related to the sort in chinese.
[G1 Android Development] Renarudo:
This thread is awesome, thanks guys!

Edit

Just flashed the "Update.zip", and it's a bit laggy, but I'll see how it gets better as the day goes on. Great mod.
[G1 Android Development] sasa3791:
Great stuff

Can I add this to Enomther rom?

tnx
[G1 Android Development] Takenover83:
Just installed it on CyanogenMod 4.2.4 and it works great. A little lag if you scroll to fast, but that is just nitpicking. Thanks for the great work!
[G1 Android Development] :
Just pushed the file in adb, worked first time.
[G1 Android Development] cyanogen:
I added the patch to my repo, here's an APK if you want it for 4.2.4:

http://n0rp.chemlab.org/android/apps/Contacts.apk
[G1 Android Development] yukkio:
Hello,

Is this normal loading contacts?
[G1 Android Development] G1-evolve:
Your the best.. :eek:
[G1 Android Development] pimpeinkc:
Do I just flash this from recovery screen?
[G1 Android Development] billington.mark:
nope,

copy the file to your SD card (in windows), once its copied, unplug the usb cable.

open up a terminal on your phone (Terminal Emulator on Cyanogen's rom) and type the following:

SU

mount /system -o remount,rw

cp /system/app/Contacts.apk /sdcard/ContactsBackup.apk

rm /system/app/Contacts.apk

cp /sdcard/Contacts.apk /system/app

May need to reboot your phone after. then your all done :)

Mark
[G1 Android Development] JackD3ath:
Thanks for apk Xenio, I dropped into my theme for Enom's AOSP, signed and updated. Working great, Im glad you were interested in getting this done.

And thanx to Geesun!
[G1 Android Development] tiggerbcn:
Great work, working perfectly in rom Cyanogen 4.2.3.1,

a thing: Would it be possible that the contacts that they d'o nt have associate image it was not going out at all, or an empty space was going out?, the motive is because so it is easier to locate to the contacts that we have photos, it is simply a suggestion, not that you have opinion about this.

Thank's for your work
[G1 Android Development] pimpeinkc:
do i need to leave it zipped? do i need to rename it?
[G1 Android Development] Slinker:
i have an idea to improve the contacts.apk...

you could add option in the favorites tab to clear all or one by one from the frequently called numbers...

i have a girlfriend and she is look who i am calling... i can remove from the call log... but not from the favorites tab...
[G1 Android Development] Abolfazl:
for some reason, when someone texts me, only their phone number shows up, not their name. Is anyone else having this problem?
[G1 Android Development] G1-evolve:
What he said ^

@ Alb no I am not having that problem.. But when I scroll down contacts it is a bit laggy.
[G1 Android Development] Carloswithac:
Android core force closed on me while trying to make a call via long-pressing a contact. Anyone else with this problem? I'll restart see if it helps.

Edit: I ended up installing it via recovery and it fixed it. This is awesome work, guys!
[G1 Android Development] johnnylicious:
this works perfect can't wait for more updates :)
[G1 Android Development] cojonesx:
any chance of getting the call log grouping in this version like in Geesuns chinese version?
[G1 Android Development] Slinker:
sorry... i wrote a little bit fast... cause i'm at work...

what i'm saying... is that my girlfriend always look at my list of frequently called...

And the contacts.apk has the option in the Call Log tab to remove contact from the list...

i was suggesting to add this option to the frequently called tab too...

i believe its more clear now.
[G1 Android Development] renegadedj:
anyone try this on cyanogen 4.2.4? or will i attempt to be the first... lol will report back :p
[G1 Android Development] cojonesx:
No issues using the Contacts.apk that cyanogen posted earlier this thread
[G1 Android Development] Takenover83:
I guess you did not see my post ;)
[G1 Android Development] renegadedj:
skipped right over it sir~! installed and working great! thanks for the luxury mod haha
[G1 Android Development] xenio2000:
Thanks to Cyanogen for his version with the Geesun patch, I put it in the Opening Post, I also post the Geesun patch, just to see how he did it.

For all the request, we have to bring here some "real" coder like Geesun/Cytown/Cyanogen to improve the Contact App and would be great to see more post, here in XDA, with source code and Layout and xml etc... and not only rom or apk...

Xenio
[G1 Android Development] nolageek:
Love it. Wish StarContacts would do this. :(
[G1 Android Development] snellx:
thanks a lot, guys. great work. have been missing this for a long time.
[G1 Android Development] xenio2000:
Could you confirm that the Letter Slider is not working correct?

Thanks.

Xenio
[G1 Android Development] snellx:
works for me. no problem with the slider.
[G1 Android Development] G1-evolve:
Getting force close when trying to dial a contact :(
[G1 Android Development] bmfc187:
Mine works fine, as well...thanks for all you hard work!!

-BMFC
[G1 Android Development] gucy:
thanks a lot, guys. great work.
[G1 Android Development] daze88:
Im having the same issue with handcent sms this is after i installed navigation maps that might be the issue.
[G1 Android Development] geova87:
Works awesome.. thnk u guys
[G1 Android Development] dkoenig:
I have looked quickly through the list, and do not see installation instructions.

It is probably just as simple as copying the file(s) to the SD card and using something like Astro to install, or browse directly to via the web,

but for clarity, could someone put a quick 1.2.3 installation for the various iterations?

Thank you for all your hard work, ingenuity and dedication and especially your generosity in sharing.

Don
[G1 Android Development] A|G:
...

Bros , we need this for cy 4.0.4 please!!!!
[G1 Android Development] G1-evolve:
Nvm I solved my problem lol.
[G1 Android Development] DBeCe:
Working perfectly on Dwang. Thank you. I'll add it on themeing the rom.
[G1 Android Development] urtzip:
It's awesome! Great work!!! :D
[G1 Android Development] renegadedj:
i know you are missing. you just said so.

lmao haha jp

wow i hope i don't run into any problems. i'm cyanogen 4.2.4 and the update and the contacts and all other apps seem to be working flawlessly
[G1 Android Development] beanboi:
sweet. thanks a lot fellas
[G1 Android Development] cojonesx:
This should work fine for 4.0.4 although it will have the eclair icon. I would backup your contacts.apk before you push the new one though just in case.
[G1 Android Development] Morrolan:
Weirdness. I installed 4.2.4 and kept the navigation apk. I ran this apk and my navigation disappeared. I went back in a re-enable the navigation apk and now my rom is 4.2.3.1. When upgrade to 4.2.4, the navigation apk is there, but the contact apk is gone. What am I doing wrong? Is there a way to have both on 4.2.4?
[G1 Android Development] geova87:
i get fc everytime i try to place a call :S
[G1 Android Development] bodyman:
did you change your build.prop back to original?
[G1 Android Development] mrnv45:
got it workin.. i use su file browser and it was way easier.. since everything is built in as far as RW and installing apks as normal apks...

also when can u theme this one with the eclair look and 25x250 contact pngs?
[G1 Android Development] sicksand:
just to report

1. works fine in 4.2.4

2. market seems not ok

3. no force close or whatsoeva when placing a call
[G1 Android Development] Morrolan:
Not that I know of. Am I supposed to?

*EDIT* I used the update_navigation.zip from http://xdaforums.com/showthread.php?t=583684 and navigation works well now. Thank you! But the dialer force closes.
[G1 Android Development] G1-evolve:
Ok this is driving me nuts! It was fine again for a while now it FC when i try and make a call.... :(
[G1 Android Development] nick8197:
mine works PERFECT!!

Facebook works

Nagivator works and doesnt dissapear

no market issues

:)
[G1 Android Development] mrnv45:
we need a theme!!! lol and with 250x250 icons!
[G1 Android Development] tiggerbcn:
Hello, as do I have already commented on a great work, have installed the Cyanogen mod contacts, but the log of the calls does not go out for me as in the capture that you put, it does not group them to me for numbers, is it possible to modify that of cyanogen so that the logs of the calls go out like that?

Thanks
[G1 Android Development] Wysie:
tiggerbcn: for those functions you have to use geesun's version. cyan's version only adds the pictures. :)
[G1 Android Development] obe1:
yep i was gonna comment on the same thing and also that special settings i don't have that either
[G1 Android Development] pascanu:
I installed geesun's version on dwang 1.11 and it works. Has a little lag on scrolling but other than that it's OK. There is however one drawback that I would like to be addressed: you are not able to delete just one entry in the call log, you have to delete all calls from that person.
[G1 Android Development] tiggerbcn:
I was thinking that this version was only for the Chinese language

Thanks
[G1 Android Development] yukkio:
Hi, anyone has geesun version with eclair icons?

BR.
[G1 Android Development] jorobochi:
I have CM 4.2.4 now.

I try the geesun_update.zip and got only FC if i try to make some call :(

With cyanogen_update.zip i did't have any problems, work perfect for me. 10x

I hope geesun make a new version or patch for CM 4.2.4
[G1 Android Development] tiggerbcn:
To me if it me works well with the rom Cyanogen 4.2.4, what well-known is that the scrooling is not soft as earlier, it seems that it finds it hard to him to move.
[G1 Android Development] crypticc:
This thread is brilliant - I have a quick question as you folks seemed well into the contacts thing. Do any of you know what happened to the gestures talked about by Google on their onsite? i.e. draw a letter C onscreen and jump to "C".

I haven't even seen that in the Eclair reviews.

Cheers

Chris
[G1 Android Development] x140d4n:
http://kugou.me/donut/Contacts.apk for cm 4.2.4.2
[G1 Android Development] clintz:
This mod in conjunction with the Google / Facebook Sync program has made my day, Thanks guys!
[G1 Android Development] Casey Rain:
Getting acore Force Closes every time I try to make a call, and I forgot to back up my original Contacts apk! Can someone post up the original Contacts apk for CM 4.2.4? Thanks!

EDIT - Never mind. Restored original .apk from Cyanogen's ROM and still got FC's. Had to wipe, now all is well.
[G1 Android Development] night-red:
How to restore with out wiping

adb shell
rm /system/app/Contacts.apk
rm /data/app/com.android.contacts.apk
rm /data/dalvik-cache/data@app@com.android.contacts.apk@classes.dex
rm /data/dalvik-cache/system@app@Contacts.apk@classes.dex
exit

You will need to extract the contacts from the 4.2.4 build (or what ever build you are using)

adb push Contacts.apk /system/app/Contacts.apk
adb shell Reboot
[G1 Android Development] atgrande1:
Hey I found this in reguards to geesun's ip dialer settings in contact.apk if this helps but I think that feature is for dual sims, now correct me if I'm wrong http://www.magicsim.com/en/cp_show.asp?id=33&cp_id=35&sort2name=8:confused: scrool to 006 in the list?!
[G1 Android Development] thugmafia:
damn bro many many thanks it work just fine for me
[G1 Android Development] motsrox:
A little request: Is it somehow possible to set and display nicknames for the contacts?
[G1 Android Development] TheUriel:
Another one to the "works perfect on Dwang" list. :D Thnx a lot.
[G1 Android Development] jorobochi:
I think it's not dual sims, it's voip for china calls, like sipdroid.
[G1 Android Development] michaelkecia:
Force Close Force Close

Im crippled now....I have no dial out capabilities....I need a fix please for the Noob!!! Thanks....

Mike
[G1 Android Development] drummm:
Also, does this come under the whole Dialer/Conacts/Call Log/Favourites/Answer Call ? I mean handled by the same APK, if So would it be possible to add an "Accept" & "Reject" Button where you receive call ? Such as the IPhone Has ?

Other than that, Great Work, Keep it up
[G1 Android Development] A|G:
???

I tried and it doesnt bros, can someone help please?!!
[G1 Android Development] JackD3ath:
@ drummm... I think that function would be handled by the Phone.apk, but dont hold me to it.

@ A|G It probably wont be developed for this build, but you could take the Contacts.apk from 4.0.4 and apply the edit to it.

Great mod, combined with the modified Phone.apk, really makes it a difference experience.
[G1 Android Development] A|G:
How would i do that bro??
[G1 Android Development] AtariLM:
I was wondering if anyone else using this mod can confirm that it is causing problems with Bump. When I try to use Bump, I can't select a contact. So I was starting to think it may be due to this mod. Is anyone else able to confirm this?
[G1 Android Development] xenio2000:
I am using the latest from Geesun and Bump let me choose from my contacts without any problem.

Xenio

EDIT:

I don't know if it works with CM 4.0.4, but this Contacts.apk is for Donut 1.6, I not sure but the 4.0.4 from Cyanogen was a mix of 1.5 and some code from 1.6.
[G1 Android Development] A|G:
!!!

so no goodies for us on 4.0.4??
[G1 Android Development] Joe333x:
Love it, thanks for the hard work. I was just thinking today while adding photos to my contacts that it would be pretty cool if you could have the contact picture next to the contact name in the SMS app, is that possible to do with out a third party app ?
[G1 Android Development] Wysie:
Joe333x: Actually that was on the to-do list of the Modified Mms.apk over here: http://xdaforums.com/showthread.php?t=540651
[G1 Android Development] matata86:
it is possible to call hostory work on cyanogen rom? Thank you for the answer ...
[G1 Android Development] f00dstamps:
Xenio - The letter slider is not working correctly for me either. Enomther explained that he just included this in his build and that any issues should be solved here. However, it appears that no one else is having this problem but you and me.
[G1 Android Development] xenio2000:
@f00dstamps

Yep I know, I have that problem too, but the Contacts.apk is compiled and modified by Geesun not by me, I don't know why is is causing problem only for a few of peoples.

I get that problem with both Cyanogen and Geesun mod... I don't know how to resolve it...

This is the answer from Geesun

"Your build environment is not the same as the running env.

You need make sure your build system resource is the same as the running system."

I don't know what that it means. I'll try to get more answer.
[G1 Android Development] f00dstamps:
Xenio,

I look forward to any additional information or solutions you may be able to uncover with the help of the developers.
[G1 Android Development] mgorman:
I have the slider issue too. Maybe its cause were on mt3g
[G1 Android Development] olearyp:
Also mT3G, also have the slider alphabet soup problem. Interesting.
[G1 Android Development] buzzdroidx:
FC in contacts no dial out

hoping someone has a fix, I got some contact.apk applied it and now it force closes and no dialing outand for some reason this is the only thread i see on contacts being altered yet doent look like the same thread...anybody can steer me right?
[G1 Android Development] bbbblack:
Still having issues with this?