yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] d0g:
>= 2.6 not working for me

(Running CM 4.2.12.2)

2.5 was fine, but 2.6 and 2.61 just hang on Call Log ... responds after about 10 seconds. Even after reboot.

Oh well -- back to 2.5 for now!
[G1 Android Development] ein1981:
I have same problem, anyway. The new ui of the call log is nice
[G1 Android Development] bhilgeman:
Great work. Love the Call log grouping. Had to remove Contacts pictures so that scrolling wasn't so choppy, but besides that works great!
[G1 Android Development] Wysie:
Chahk: The SkImageDecoder thing, I think it happens when you've no Contact picture associated with it. Happens with the geesun patch for showing pictures in Contacts as well. For the SQL error, I've made sure to close all cursors, and I also noticed it only happens sometimes. Not too sure why for now. Thanks for reporting :).

matata86, d0g and ein1981: Can you all post a logcat while it's hanging? :)

polyrhythmic: I just pulled the Eclair branch ytd, no promises though. Sch's starting :(.
[G1 Android Development] htcclay:
lol...I see.

Thank you!
[G1 Android Development] camalot:
Love the changes, keep up the great work.
[G1 Android Development] Sikounette:
Do you need any help for a french trad ?

just put the string.xml with what you want to trad and i will do it if you want :]
[G1 Android Development] Wysie:
Sikounette: If you want to translate you can go to my github here (http://github.com/Wysie/android_packages_apps_Contacts/tree/donut/res/). values is where all the English strings are, I'm guessing values-fr is where all the french one is. If you can translate it'd be good, thanks! To be honest I only use English myself :P.

I added one more preference setting, and that is the option to DISABLE number checking in Dialer. In other words, when you press menu in Dialer, you will always see all available options, even if no number is entered. The same goes for the left action button.

Also, jairomeo requested for the background of the dialer to be themeable, and I hate this lame request, so from now on, Contacts.apk is going to look like this:

Joking :P. Sorry camalot, grabbed the nearest picture i cound find. It is now themeable, will post more info in the first post and will update soon. I should sleep soon, gotta wake up early for my trip. Thanks jairomeo for the suggestion! :)

Update:

1.72 with above options out! :)
[G1 Android Development] jairomeo:
Thank you for adding that!
[G1 Android Development] :
Just upgraded to 1.7.2 and have to say fantastic work! Great new features.

Love the fact you have that quick call key next to the contacts!

Your a star fella for all your work, thanks.

Quick question. Noticed in the call log the 'Total incoming/outgoing' that when you clear the call log it clears the totals too. Is their anyway to possibly make it so that it keeps the totals even if call log is cleared? Also would it be possible to make it so you could clear the totals manually?

Just wondering as I have a monthly plan with 350 minutes call time and would like to be able to keep track of outgoing calls without having to keep my call logs all cluttered and at the start of each month reset the Total incoming/outgoing so that I could start my minutes again? (Nevermind seen you have something similar on your todo list :D)
[G1 Android Development] JackD3ath:
I love what you are doing with the apk. I am currently using Xenio's, now i can try it.

Thanks!
[G1 Android Development] camalot:
I love it. you should keep it like that. :)

Just a suggestion, if "Hide Frequently Called" is checked, then the "Clear Frequently Called" menu item should be hidden.
[G1 Android Development] jweezy92:
how do i add my own picture to the background?
[G1 Android Development] camalot:
Something i just noticed, any way to make the setting group separators use the text for the tabs. I only ask because currently it says, for example, 'Favourites', but here in the US, the tab says 'Favorites'
[G1 Android Development] jairomeo:
You need to replace custom_background_dialer.png in drawable-finger
[G1 Android Development] Sleeepy2:
Brilliant work!

Thanks
[G1 Android Development] Vlad83:
think the update zip is messed up... too small
[G1 Android Development] MontAlbert:
nice update wysie, instead of working i just did a really quick half arsed theme of this to see what could be done:

i will polish it up over the weekend. until then here is what can be done :D
[G1 Android Development] jairomeo:
This is my themed dialer that I was able to finish once Wysie added the line I needed :D
[G1 Android Development] 2girls1cup:
badass, can you post a flashable .zip of that or metamorph apk?
[G1 Android Development] Wysie:
Vlad83: The update.zip is working properly. I tested it by downloading it after I uploaded it (all 3 mirrors, MediaFire, RS, attachment). It's around 360kb because it contains just Contacts.apk + the update script to do the necessary stuff. :)

Glad you all like it :D! I'm off for my trip, enjoy the weekend!
[G1 Android Development] Wysie:
camalot: I'll take both your suggestions into account when I'm back (the Favourites naming thing and the clear freq called thing). It should be very possible ;). Nice ideas! :)
[G1 Android Development] holysmokesbatty:
How do I add transparency to buttons?

Sorry for my noobishness, and yes, I did do a bit of searching before the post. :P
[G1 Android Development] nyctrini3:
How do you get the update .zip to work?? Cuz not working for me either
[G1 Android Development] polyrhythmic:
I'm not great with C but maybe I can help you with it if it gives you trouble. I'm sure it will have plenty of fans on Eclair as it does on Donut!
[G1 Android Development] Wysie:
polyrhythmic; It's Java actually.. :).

2.62 out. Very minor update.
[G1 Android Development] FatBoyExtraordinaire:
This is like my midnight snack. Thanks Wysie.
[G1 Android Development] alorayou:
All of you seem to know already, but just to confirm that this is not currently compatible with Eclair yet, I installed it but force closes due to being an old version, etc. Had to upgrade to the new contacts for Eclair (very basic in comparison...)

Looking forward to an Eclair compatible version, the app looks great...

thanks
[G1 Android Development] :
Cheers Wysie :D

Also just downloaded Super D 1.5.1 and my god the speed of your contacts.apk is unreal.

Bye bye lag problems!
[G1 Android Development] pconwell:
I have noticed on the call log that the numbers sometime 'shake'. I don't know how to describe it... It's kinda like the font is changing rapidly back and forth. The names and labels are fine. The numbers are the only thing that do it.

I was also wondering how the favorites frequently called worked. I have called some people a bunch of times and they don't show up, but other times a number that I have called once (or never called and they called me once) will show up on frequently called. Is there any way to clear one number from the favorites without clearing everybody?

Also, would it be possible to block calling out to a certain contact? Maybe if I check "send calls directly to voicemail", I cannot call this contact, or even better, have a pop up asking if I really want to call this contact.

(p.s. I would still like to have check boxes for group selection).

Thanks.
[G1 Android Development] d0g:
Would love to help, but have no idea how to do that :confused:
[G1 Android Development] pconwell:
d0g,

Do you know how to use adb? If you do, open up a terminal and type "adb shell logcat".

I don't know how to do it any other way, although CyanogenMod comes with a log collector. You might be able to get something from that, but I don't know.
[G1 Android Development] Chosen_on184:
Even after updating dialer still takes a while to open .. call log still lags takes about 8-10 sec or after 6 sec it gives me the force close or wait option ..any ideas on how to address this issue

running latest cyan ..wth cfs kernel hack 10mb ram
[G1 Android Development] Wysie:
pconwell: I notice the "shake" too, can't find out how to fix it :(.

Chosen_on184: Only the first start is slow, subsequent ones should be faster...
[G1 Android Development] mailman1387:
Question

Does the latest version of your contact.apk work on Enom AOSP ROM if i installed it the way i installed enom previously mod version for his rom? or do i have to wait till Enom mod's it?
[G1 Android Development] Wysie:
mailman1387: I believe you've to wait for enom's version.

On another note, while I was making a theme for Amon_RA's ROM, I decided to run apk optimization (actually was trying to get the png size down. http://xdaforums.com/showthread.php?t=560271) as well as odexed it. It feels a slight bit faster. I've attached it here, flash it like an update.zip.

Seems it's not working for some people :(. It worked for me though. Download at your own risk...
[G1 Android Development] :
ff

Flashed it and black screened me :( don't know if its just a dodgy download or not so will wait to see if anyone else has the problem.

Thank the lord for switchrom :D
[G1 Android Development] pconwell:
DO NOT FLASH "OPTIMIZED" .apk

Broke my phone too. Wiping did no good. Had to reinstall.

(I was having other problems anyway, so I didn't want to do a nand restore.)
[G1 Android Development] Wysie:
:( i will check it later.
[G1 Android Development] Wysie:
Sorry guys I believe the odex-ed version only works on Amon_RA's ROM :(. Oh well. Let me see what I can do.
[G1 Android Development] ThePhaige:
Hey guys...great work. I am getting a FC when trying to place a call...either in dialpad or direct dial from contact...yeah its that process.acore. Any ideas?
[G1 Android Development] pconwell:
Maybe this will help

Wysie,

I sent this link to your twitter:

http://www.mail-archive.com/android-developers@googlegroups.com/msg16316.html

I am working under the assumption that the problem is caused by ODEX and not zipalign. (There is no reason that zipalign should cause problems).

A thought, you could install the Contacts.apk to /data/apps. I have done it before with other 'system' apps, and they worked fine. I'll play around and let you know.
[G1 Android Development] pconwell:
Here is the logcat...

This is the logcat while using the new "optimized" contacts.apk...

I/PackageManager( 231): /system/app/Contacts.apk changed; unpacking

D/dalvikvm( 231): DexOpt: VM build version mismatch (14 vs 17)

E/dalvikvm( 231): /system/app/Contacts.apk odex has stale dependencies

E/dalvikvm( 231): odex source not available -- failing

W/dalvikvm( 231): threadid=15: thread exiting with uncaught exception (group=0x4001e170)

E/AndroidRuntime( 231): Uncaught handler: thread android.server.ServerThread exiting due to uncaught exception

E/AndroidRuntime( 231): *** EXCEPTION IN SYSTEM PROCESS. System will crash.

E/AndroidRuntime( 231): dalvik.system.StaleDexCacheError: /system/app/Contacts.apk

E/AndroidRuntime( 231):	at dalvik.system.DexFile.isDexOptNeeded(Native Method)

E/AndroidRuntime( 231):	at com.android.server.PackageManagerService.performDexOptLI(PackageManagerService.java:1944)

E/AndroidRuntime( 231):	at com.android.server.PackageManagerService.scanPackageLI(PackageManagerService.java:2271)

E/AndroidRuntime( 231):	at com.android.server.PackageManagerService.scanPackageLI(PackageManagerService.java:1878)

E/AndroidRuntime( 231):	at com.android.server.PackageManagerService.scanDirLI(PackageManagerService.java:1771)

E/AndroidRuntime( 231):	at com.android.server.PackageManagerService.<init>(PackageManagerService.java:470)

E/AndroidRuntime( 231):	at com.android.server.PackageManagerService.main(PackageManagerService.java:266)

E/AndroidRuntime( 231):	at com.android.server.ServerThread.run(SystemServer.java:134)

E/AndroidRuntime( 231): Crash logging skipped, no checkin service

I/Process ( 231): Sending signal. PID: 231 SIG: 9

I/ServiceManager( 73): service 'entropy' died

I/ServiceManager( 73): service 'power' died

I/ServiceManager( 73): service 'batteryinfo' died

I/ServiceManager( 73): service 'usagestats' died

I/ServiceManager( 73): service 'telephony.registry' died

I/ServiceManager( 73): service 'SurfaceFlinger' died

E/installd( 80): eof

E/installd( 80): failed to read size

I/installd( 80): closing connection

I/Zygote ( 230): Exit zygote because system server (231) has terminated

D/AndroidRuntime( 244):
[G1 Android Development] pconwell:
Okay, fixed it (sorta)

I did some looking, and it seems that the .odex must be made specific for each system. (Not sure what that means exactly. Hardware? Software? combination of the two?)

Anyway, I was able to make a .odex file from the 'normal' 2.62 contacts.apk. I replaced the .odex file from the "optimized" contacts.apk with my .odex file and it worked!

I have a G1 with the CM 4.2.12.2. I have loaded the .odex file that works for my setup.

(I looked into putting contacts.apk in /data/app, but it wouldn't do what you want because apps in that directory used a compressed .dex apparetnly, so just ignore that suggestion.)

Edit: Sorry, forgot to add, it does seem to be *slightly* faster with the "fixed" "optimized" contacts.apk.
[G1 Android Development] zendick:
Hey guys whats the possibility of adding a full screen widget for your dialer, al la Iphone I think it will make the dialer easier to access on soft key only phones.
[G1 Android Development] oMszKikiIzWavyo:
So Should We Push This To The /system/app Or Run It As An Update.zip?
[G1 Android Development] pconwell:
@oMszKikiIzWavyo,

First, I don't know for sure that it will work for you - all I can say is that it worked for me on my G1 running cyanogen 4.2.12.2.

Now, that being said, yes, you would need to push my Contacts.odex using adb. I did it like this:

Unzipped Wysie's "optimized" update.zip and took out contacts.apk. I pushed his Contacts.apk and my Contacts.odex to /system/app. I then removed the old .dex file: :adb shell rm /data/dalvik-cache/*Contacts*"

You

might

be able to flash Wysie's update.zip, reboot your phone (it will go to the black screen), start up adb and push my .odex file to /system/app/Contacts.odex, reboot your phone, and it should work.

Whatever you do, make sure to do a backup first.
[G1 Android Development] :
Or simply flash SuperD v1.5.1 rom and be amazed at the speed Wysies contacts works :D
[G1 Android Development] pconwell:
G1 ONLY

Here is an update.zip for the G1. (Mine is running CM 4.2.12.2, not sure if that will make a diff).

It should fix the "black screen".

This is about 99.9% Wysie's work. I just replaced his .odex file with my .odex file that is specifically built for the G1, and then re-signed the file.

Remember, this has only been tested on a

G1 running CM 4.2.12.2

.

Flash it from recovery like any other update.zip, and let me know if you have any luck.
[G1 Android Development] Wysie:
Thanks pconwell. I think I will just post instructions on how to odex later, and let pple give it a shot for themselves. I'm trying to get a version that auto-shows and hides the keyboard in Contacts.
[G1 Android Development] Nayyak:
all the latest versions suffer from a lag especially when clicking on Call Log (Contacts pictures always hidden).

I've switched back to 2.33
[G1 Android Development] Wysie:
Hi all,

I've uploaded 2.7 with minor changes, and this will probably be the last update (except for serious bugs) for Donut. I'm not sure if I'll move on to 2.0/2.1, as my school's starting tomorrow, and I seriously doubt the workload will allow me to code as I've been doing. Moreover, I'm selling my HTC Magic on Tuesday, and will be getting a Nexus One.

It's been a fun one month or so, and thanks for all the support and donations. Those of you who donated, you know who you are. While it wasn't much (less than a hundred SGD in total actually), it was still nice to receive them, and today, I used them to purchase the skin protectors from Skinomi.com. There're some people I'd like to give special thanks to, and they are (in no order):

Amon_RA

MontAlbert

regunus

shadowch31

FatBoyExtraordinaire

camalot

Actually, everyone else who reported bugs and were involved in giving many suggestions that makes the current version what it is!

Do report any bugs, I'll do my best to fix them (without an actual phone tho).

On to actual stuff, I'll release 2.7 tomorrow with the PNGs optimized for those of you who want it. Regarding odex-ing, I apologize for posting the update.zip that caused some of you problems. Still, it's your fault for not nandroid-ing anyway :P! Haha.

To odex an existing apk, say Contacts.apk, you got to first push or flash it. Once its in, do the following:

adb shell
cd /system/app
rm Contacts.odex (this step is only needed if you've odex-ed a previous version)
rm -r /data/dalvik-cache/system@app@Contacts.apk@classes.dex (this will remove the dex file created by Dalvik, you don't need this one anymore because you already created an optimized dex)
dexopt-wrapper Contacts.apk Contacts.odex
exit (this command will exit shell)

By this step, you would have created an odex file. With an odex file, you no longer need the classes.dex file within the apk. So.. To continue on:

adb pull /system/app/Contacts.apk .

The last command will pull Contacts.apk to your current directory. Open Contacts.apk with WinRAR or something similar, and delete classes.dex inside it. Once done, zipalign the file by doing the following:

zipalign -v 4 Contacts.apk Contacts-aligned.apk

Once done, do the following:

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

And you're done :)! Instructions updated as per Amon_RA's suggestion. Also, my bad, I forgot to mention earlier, these instructions were from MontAlbert a long time ago (when I was still a newbie, still am), who got it from Amon_RA ;).

Oh, nayyak, only the first load should be a little laggy. Subsequent ones should be faster. It's because of the way group call logging is done. If it affects you, please use 2.34 instead of 2.33 :).
[G1 Android Development] :
Sir its been an honour and a pleasure. From all of us a massive

THANK YOU!

Wish you all the best fella and good luck with the year ahead.
[G1 Android Development] g1lol:
suggestion

Wysie,

Thanks for the great work.

one small suggestion....when u try to add a shortcut to home screen.

the selection list doesn't display the numbers....it only displays the Names.

Ex: If AIRTEL contact has 3 numbers (Home, Mobile, Office).

Now Select Shortcut--> Direct Dial-->> then the list will popup.

But this list just contains the Names it shows "AIRTEL" 3 times with out numbers.

is it possible for you to show numbers also?
[G1 Android Development] FatBoyExtraordinaire:
Yes indeed. It's been a pleasure to use your wonderful creation and our thanks can't be expressed enough. My phone is much better for it. Like was said, good luck with everything and enjoy the hell out of that N1!
[G1 Android Development] jgz4shez:
alphabet slider?

I don't know anything of what it takes but on the iphone in contacts it has a slider with the alphabet displayed vertically on the right and touching a letter jumps you straight to contacts starting with that letter. Is it possible to have something like that in androids contacts app???
[G1 Android Development] :
When scrolling contacts the large silver button that pops out of the slide bar on the right is an alphabet slider. Just pop your finger on it and slide through till you get to the letter you want.
[G1 Android Development] jgz4shez:
I know. I just found it a lot faster for me to jump right to that section of my contacts using iphone's style slider.
[G1 Android Development] :
But surely you would have to scroll through the alphabet anyway to get to the bottom before selecing the letter?

Anyway due to space restrictons can't see it happening.
[G1 Android Development] jgz4shez:
Don't get me wrong, I love all the enhancements in my phone and appreciate all the work by all the devs. The enhancements in contacts are tight and have been so excuse me for not making that clear in my first post.

Thanks for your reply
[G1 Android Development] tnpapadakos:
just use the iphone then

(sorry, just a little rivalry wisecrack fun)
[G1 Android Development] :
Damn my reply reading it back was blunt lol sorry wasn't meant that way :D

I've never actually seen or used an iphone personally, everyone I know has a G1 so clueless of its features and appearence.
[G1 Android Development] Vlad83:
Suggestion

Can please you add an option in preferences to select which tab in contacts opens by default. For instance, when I press the dial button I would prefer for it to go directly to contacts as opposed to call log... I think there is an app that does that in the market but I would rather have all my settings in one place :)

Thanks for all your hard work.
[G1 Android Development] Wysie:
Instructions to odex updated as per Amon_RA's suggestion: http://xdaforums.com/showpost.php?p=5324389&postcount=607

On another note, niuchi has made some changes that speeds up Call log even more. I've told him to post it directly here, and to send me the patch as well. Hopefully there's more performance boost for you guys!

Lastly, I've uploaded the PNG optimized versions:

apk: http://www.androidspin.com/downloads.php?dir=wysie/APP/&file=Contacts_wysie_2.7_apk_optimized.zip

update.zip: http://www.androidspin.com/download...ontacts_wysie_2.7_update_optimized_signed.zip
[G1 Android Development] Neejay:
Wysie, it's been a pleasure working with your releases! Thanks again, you've done more than enough when it comes to this!
[G1 Android Development] Wysie:
I just received Niuchi's patch, will try to compile and post a beta here. Unable to test, sold my Magic already. Your reports will be important! :)

Thanks Neejay.
[G1 Android Development] Wysie:
2.8 BETA,patch from @niuchi on Twitter. I did NOTHING except to apply the patch. Please thank him instead ;). Please test first :P. http://dl.dropbox.com/u/263378/Contacts_wysie_2.8_BETA_apk.zip

I believe there are some issues to iron out, if I'm not wrong, the grouping might not work as intended again. Eg. 91234567 +6591234567 and 010891234567 might not be grouped together.

I'll be helping my friend with his Magic in a while, maybe I can do some real testing then ;).
[G1 Android Development] pconwell:
Patch?

Sorry, I thought I was keeping up with the thread, but I'm lost.

What does is the patch for?
[G1 Android Development] Wysie:
pconwell: It's supposed to be faster. Gg to test in a while, got my friend's Magic :P
[G1 Android Development] pconwell:
Okay. I installed it (on my G1) and it does seem faster.

On an unrelated topic, does anyone know why contacts keep getting duplicated? Has anyone seen this in 2.0?

btw Wysie, good luck in school.
[G1 Android Development] FatBoyExtraordinaire:
What do you mean by optimized PNG version, what does that do?
[G1 Android Development] :
Can't stay away from us huh Wysie? ;)

And oohhhh new beta to play with! Will download later and report bak fella.
[G1 Android Development] :
It basically means it makes the images a smaller file size - smaller size means quicker load up.
[G1 Android Development] gophergun:
I'm using version 2.7 and getting an android.process.acore force close whenever I try to dial a number on Dwang's 1.17.1. I thought it might be the ROM, but then I found out that calls seem to work through voice dialer, so I'm wondering if it's something from this application. I took a logcat, which I'll attach here, that said something about permission denial for android.intent.action.CALL.PRIVILEGED, or something to that effect. Unfortunately, it's not as simple as just using fix_permissions. Can anyone offer any insight?
[G1 Android Development] FatBoyExtraordinaire:
Got ya. Appreciations on the explanation.
[G1 Android Development] pconwell:
@gophergun,

I don't know much about the internals, but it seems that the dialer doesn't have the permissions to access outgoing calls (phone.apk).

(fix_permissions would not fix this. fix_permissions fixes the apk's external permissions, giving the OS access to the apk, but wouldn't give the apk permission to other apks.)

Try updating to the 2.8beta, or reinstalling 2.7. I would not use the "optimized" version for now. Just use the regular 'ol 2.7.

Not sure if this will help. Just my guess.