[MOD] Dialer/Contacts.apk 2.8 Based off ChainsDD Dialer (Updated 140110)

Search This thread

Sikounette

Member
Jul 30, 2009
9
0
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 :]
 

Wysie

Senior Member
Jul 4, 2009
1,122
6
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! :)
 
Last edited:

jairomeo

Senior Member
Mar 22, 2009
1,519
97
727
www.designrifts.com
Changes:
1.72:
Added option to allow disabling of number checking for dialer. What's number checking? Basically, previously, SMS/Add To Contacts will not be shown in the Menu in Dialer unless at least one digit is entered. Also, the left action button was disabled unless one digit is entered (except for voicemail). With number checking disabled, you'll always see them in menu, and left action button will always be enabled.

Added a drawable, custom_background_dialer.png in drawable-finger to allow a themeable background in Dialer. Thanks jairomeo for the suggestion. See the following screenshot for an example:



Don't worry, the Dialer is still black background by default. Just used camalot's display pic (nearest I could find :p) as an example.

Thank you for adding that!
 
S

shadowch31

Guest
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)
 
Last edited:

camalot

Retired Recognized Developer
Jul 25, 2007
643
138
47
Hickory Hills IL
de.codeplex.com
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! :)

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.
 
Last edited:

camalot

Retired Recognized Developer
Jul 25, 2007
643
138
47
Hickory Hills IL
de.codeplex.com
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'
 

MontAlbert

Senior Member
Jan 10, 2007
2,655
198
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
 

Attachments

  • transp2.jpg
    transp2.jpg
    20 KB · Views: 41
  • transparentdialer.jpg
    transparentdialer.jpg
    20.1 KB · Views: 38
Last edited:

Wysie

Senior Member
Jul 4, 2009
1,122
6
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!
 

Wysie

Senior Member
Jul 4, 2009
1,122
6
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! :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Hi all,

    I started this thread in order to gain more feedback on the changes/additions I've made to ChainsDD's dialer. Ultimately I believe all the changes he and I make will become one build :). Actually I've posted the changes on ChainsDD's thread, but I figured it will probably get a little messy over time, thus the reason for this.

    For those of you who have used my previous versions, and are experiencing issues with no image for the left action button, settings no saving, FCs, etc. try this before installing:

    Code:
    adb remount
    adb shell rm -r /data/data/com.android.contacts/shared_prefs
    adb shell rm -r /data/data/com.android.providers.contacts/shared_prefs

    There are 2 zip files, one's the apk (for people who hate to reboot and like commands, like me), and one's the update.zip version (for people who hate commands and like to reboot :p):

    Installation instructions (Amon_RA's):
    Code:
    adb remount
    adb shell rm -r /system/app/Contacts.*
    adb shell rm -r /data/dalvik-cache/system@app@Contacts.apk@classes.dex
    adb shell rm -r /data/data/com.android.contacts/shared_prefs
    adb shell rm -r /data/data/com.android.providers.contacts/shared_prefs
    adb push Contacts.apk /system/app/Contacts.apk

    Or you can simply reboot to recovery mode and flash the update version.

    If call log is outdated (should not happen, just in case), or if you want to delete the call log cache for some reason, do the following and then re-open Contacts/Call log:
    Code:
    adb remount
    adb shell rm /data/data/com.android.contacts/files/idCache.dat

    Credits:
    ChainsDD of course, for backporting it! :) http://xdaforums.com/showthread.php?t=594194
    rac2030, for open-sourcing NavStarter. I adapted his code to enable navigation from the contact info. Thanks dude!
    geesun, for sending me his group call logging code, and x140dan, for helping me get in touch with geesun. Thanks guys! :)

    Features:
    Dialer:
    Ability to set certain programs for voicemail
    Themeable background: custom_background_dialer.png in drawable-finger
    Changeable digits color (Screenshots: http://xdaforums.com/showpost.php?p=5191698&postcount=79)
    Haptic feedback function

    Call Log:
    View total incoming/outgoing call time in call log
    Show actual time in call log, instead of relative time
    Show contact pictures in call log
    Hide the green dial button, when this is hidden, tapping on the arrows showing incoming/outgoing/missed call will dial the number instead. That is, they replace the function of the green dial button.
    Ability to clear all logs of a particular user or number (long-press on the entry, it's in the context menu)
    Ability to clear all logs of a particular type (missed, incoming, outgoing)
    Call logs are now grouped
    Ability to change the size of the contact picture when viewing an individual's call log

    Contacts:
    Navigate directly from contact info (works with M4ps and rooted Maps, it doesn't make sense actually, if you're rooted you shouldn't be running M4ps).
    Show dial button in Contacts/Favourites, saving you one step before you call the person.
    Add/remove contacts from Groups I've tested this quite extensively. It works when creating a new contact or when editing an existing one.
    Ability to change the size of the contact picture when viewing a contact.
    Alphabetical separators in contacts. Screenshots: http://xdaforums.com/showpost.php?p=5204491&postcount=187
    Ability to create/rename and delete groups! System Groups and Starred in Android are shown but not editable though. Access this by pressing Menu in either Contacts or Favourites. Screenshots: http://xdaforums.com/showpost.php?p=5229669&postcount=308
    Ability to take a picture with the camera directly when adding/editing a contact. Screenshot: http://xdaforums.com/showpost.php?p=5239577&postcount=352
    Added copy to context menu when viewing a contact so you can copy a contact's number, address, email, etc. directly. Thanks to vinz0r for suggestion.
    Added preference to hide all "Text/SMS" actions except for mobile numbers. Thanks to nolageek for suggestion.

    Favourites:
    Ability to clear frequently called numbers.
    Ability to hide frequently called numbers


    Misc:
    Enable/disable auto-rotation based on sensor

    Some screens (more screenshots attached below):
    Separators in Contacts
    34nmn3q.png


    Editing of Contact Group Membership
    2c0phh.png
    ivbtp1.png



    Current version:
    2.8:
    apk: http://www.mediafire.com/file/lxyzbykliwy/Contacts_wysie_2.8_apk.zip
    update.zip: http://www.mediafire.com/file/jnzlit22zzd/Contacts_wysie_2.8_update_signed.zip

    Mirror (Thanks AndroidSPIN!):
    apk: http://www.androidspin.com/downloads.php?dir=wysie/APP/&file=Contacts_wysie_2.8_apk.zip
    update.zip: http://www.androidspin.com/downloads.php?dir=wysie/APP/&file=Contacts_wysie_2.8_update_signed.zip

    The apk is within the zip file, unzip it first. For the update.zip version, do NOT unzip it.

    Odex instructions (in case you want to do it): http://xdaforums.com/showpost.php?p=5325899&postcount=609

    Version 2.5 for TheOfficial ROM users:
    enomther has kindly compiled a version for TheOfficial ROM users, please use it if you're having problems with jumpy alphabets when scrolling. Thanks enomther!
    http://xdaforums.com/showpost.php?p=5273344&postcount=6186

    ALWAYS read the changelog! Might save you from updating sometimes ;).

    If you like what I do, buy me a beer!

    To Do:
    Dialer:
    Landscape dialer? (I need a mock-up that looks good.)

    Call Log:
    Call log enhancements (Set the monthly incoming/outgoing call limits and warn accordingly.)

    Contacts:
    Add navigate option to context menu
    Quick contact? (still thinking of how to implement it)

    Misc:
    Allow styles in preferences? (xenio's suggestions)

    Known Bugs:
    Not really a bug, but a limitation of Android currently. Friends, Family, Colleagues and the other Google-created Contact groups can't be shown. More info and workarounds here: http://code.google.com/p/android/issues/detail?id=1632

    Any suggestions?
    1
    Changes:
    2.8
    Fixed bug at http://code.google.com/p/cyanogenmod/issues/detail?id=999
    Added German translations, thanks to thiasB!
    Patched Call Logs by niuchl. It's supposed to be faster. Do report if it's faster/slow/bugs anything. His implementation does NOT make use of a HashTable or any cache.

    2.7
    - Cleaned up some code.
    - Added an option in Contacts to auto-hide the keyboard when scrolling. Useful for those who use the virtual keyboard often (like myself) to search for names.

    2.62
    - Added menu option to show all groups or show only contacts with phone
    numbers. Requested by explosivo2k2 (Twitter).
    - Enabled fast scrolling for call log, and individual call log details.

    2.61:
    - Fixed a bug. http://code.google.com/p/cyanogenmod/issues/detail?id=783
    - Added various clearing logs function when viewing an individual's call log. Press menu or long press on number to see them. Preferences may be implemented in future.
    - Layout of individual's call log is changed. Time and date is now the focus instead of number. Also added labels for the number type.
    - Cleaned up code quite a lot.

    2.6:
    - Call log should now load much faster.
    - Some layout tweaks here and there
    - Special thanks goes out to shadowch31 and lilithpro for testing! And everyone else who helped of course. :)
    - Unknown numbers, private numbers and payphone numbers are now grouped together. Unknown as in you can't see the number, not those numbers which are not saved.

    2.51:
    - Fine-tuned the group call logging portion layout.
    - Also, most of the contacts should group properly now. I did some workarounds to get most of them to group. Android's PhoneNumberUtils can't seem to compare numbers properly all the time, which kinda sucks. In addition to using PhoneNumberUtils.compare(), I also queried and pulled out the id of the Person (Contact). Lastly, I wrote a sloppy method which compares the last 8 digits of numbers, and if they are equal, they are grouped together.
    - Also, my previous functions of "Remove all [Number]" was bugged. Again, I can't do much due to PhoneNumberUtils not working perfectly, but it should remove all numbers now, as long as they are 8 digits or more. Previously, if you had:
    91234567, +6591234567, and 010891234567. and you selected "Remove all 91234567", only 91234567 will be removed, and the other 2 with country codes will not. It now works as expected, but the code is honestly not the best way possible. Unfortunately I am unfamiliar with country codes and such :(.
    - Cleaned up the code, most of the strings are now in strings.xml.
    - Ability to view call log directly from a contact.
    - The dialog shown when copying a number, address, etc. now contains the address itself, instead of the word "address"
    - Added more options to the context menu when viewing an individual's call log
    - The incoming/outgoing/missed call icon when viewing an individual's call log will now dial the number of that particular entry.
    - I should've called it 2.6. Lol.

    2.5:
    Rebased call log portion of Contacts.apk on geesun's code for grouping of call logs. In other words, call logs are now grouped!
    Some minor code changes.
    Preferences to set contact picture size when viewing call log is in as well.

    2.34:
    Fixed issues with Groups management in general when the group names contain special characters such as single quotes (').

    2.33:
    Added some prefs to hide labels/numbers for Call Log, Contacts and
    Favourites.
    Also, when viewing a contact, you can now copy the name by long-pressing
    on it.

    2.32:
    Fixed a self-introduced FC bug which happens if you choose a contact picture by using the Gallery/photo picker, and cancel it halfway.
    Fixed an AOSP bug with "Display Groups" in Contacts always having an index off. See comments in github code for more information.

    2.31
    Fixed a bug whereby the temporary file created when taking a photo (for adding/editing of contact) will not get deleted if the user chooses to cancel his actions halfway.
    Added copy when viewing a Contact information. Everything is copiable except for Ringtone and Groups. Thanks to vinz0r for suggestion. Screens: http://xdaforums.com/showpost.php?p=5242285&postcount=362
    Added preference for showing "Text" action for mobile numbers only. The code was actually 1/2 done already, I believe by ChainsDD! Thanks to nolageek for suggestion.

    2.3:
    Fixed a bug with the first group not showing up when editing a Contact's group membership. For example, if you have College, Fun, and XDA as your groups, College will not show up. Thanks to G1sanju for reporting. It's an old bug, since the first time groups management was implemented actually.
    Added the ability to take a picture using the camera directly (instead of selecting from Gallery only) when adding/editing a contact. Again, thanks to G1sanju for suggesting. Screenshots: http://xdaforums.com/showpost.php?p=5239577&postcount=352

    2.21:
    Added more options for the clearing of call logs. You can now clear all incoming, all outgoing or all missed calls. Thanks to xdan for the suggestion. Screenshots: http://xdaforums.com/showpost.php?p=5232303&postcount=325

    2.2:
    Fixed a tiny bug when adding/removing a contact from groups.
    Reduced haptic feedback from 50ms to 30ms so your fingers are no longer hurt :p.
    Implemented ability to Manage Groups. You can now Add, Delete, and Remove groups. System Groups and Starred in Android are shown, but are not editable though. Access this by pressing Menu in either Contacts or Favourites. Screenshots: http://xdaforums.com/showpost.php?p=5229669&postcount=308
    Updated preferences, you can choose whether you are asked before deleting groups.

    2.11:
    "Fixed" an FC when viewing certain contacts. Not really mine or AOSP's code, but rather some apps are saving Contact data wrongly. More info here: http://code.google.com/p/cyanogenmod/issues/detail?id=890

    2.10:
    Added haptic feedback for dialer. Thanks to truemagic for the suggestion.
    Fixed some layout bugs from the alphabetical separator backport.

    2.01:
    Fixed an FC bug which occurred if you try to make a "Direct Dial" or "Direct Message" shortcut. Thanks to g1lol for reporting.
    Separators are now shown only in "Contacts" tab, and not anywhere else (eg, when creating a "Direct Dial" and you're asked to pick a contact).
    Using some more code from AOSP master.

    2.0:
    Fixed groups being shown duplicated when editing contacts. Thanks to acrawl1 for reporting.
    Fixed FC bug when adding contacts, and green dial button not dialing in call log. Self-introduced bug :X. Thanks adair for reporting.
    A few other layout tweaks, and some minor code changes. Eg. Green dial button was shown when adding contacts, fixed it already.
    Alphabetical separators in Contacts. It's changeable, in case you don't like it. Screenshot: http://xdaforums.com/showpost.php?p=5204491&postcount=187

    1.96:
    Show contact pictures/Show dial button is now an individual setting for each tab (so you can customize it to your liking)
    Keypad #1 can now be set to dial the usual voicemail, while Left Action Button does something else, eg. Google Voice. Thanks A|G for the suggestion.
    No longer need to restart app to show/hide contact pictures.
    Contact pictures can now be shown in call log. Green dial button can be hidden. In the case where green dial button is hidden, the incoming/outgoing/missed call arrows will replace the dial function, so you don't really miss out on anything. See pic for explanation:

    22f9n5.png


    More screens here: http://xdaforums.com/showpost.php?p=5202381&postcount=171

    1.95:
    Fixed the FC bug with Dream users when they slide out the keyboard while editting a contact. Thanks to shadowch31 for the logcats :).
    Don't have to update if you're using Sapphire/Magic. Important for Dream users.

    1.94:
    Fixed the issue with the digits colours not being set properly. Thanks MontAlbert for the help!
    Contact picture size when viewing a contact is now configurable.
    Cleaned up preferences, thanks camalot for the suggestion.
    Added an About, thanks xiutian for the suggestion.
    Screenshots: http://xdaforums.com/showpost.php?p=5198786&postcount=128

    1.92:
    Fixed a bug which caused a contacts to be removed from all groups if you editted his info without choosing the "Groups" option (forgot to load the info).

    1.91:
    Added ability to use custom colors. (Screens/Info: http://xdaforums.com/showpost.php?p=5192706&postcount=86)

    1.9:
    Fixed a couple of FC bugs introduced with the group feature.
    Added preferences to allow switching of digits colours. (Screens: http://xdaforums.com/showpost.php?p=5191698&postcount=79)

    1.8:
    Clear Frequently Called is now hidden when "Hide Frequently Called" is selected. Thanks camalot for suggestion.
    Setting group separators now use the same text as tabs (consistency, won't have Favorites in tabs and FavoUrites in settings anymore). Thanks again to camalot for the suggestion.
    Added ability to add/remove contact from groups. I've tested it quite extensively, still, please report any bugs. Take note that even though you can deselect a contact from "My Contacts", the Contacts.apk by default (AOSP code) will always add it back to My Contacts. I *may* remove "My Contacts" from the list in future, but that's a low priority.

    1.72:
    Added option to allow disabling of number checking for dialer. What's number checking? Basically, previously, SMS/Add To Contacts will not be shown in the Menu in Dialer unless at least one digit is entered. Also, the left action button was disabled unless one digit is entered (except for voicemail). With number checking disabled, you'll always see them in menu, and left action button will always be enabled.

    Added a drawable, custom_background_dialer.png in drawable-finger to allow a themeable background in Dialer. Thanks jairomeo for the suggestion. See the following screenshot for an example:



    Don't worry, the Dialer is still black background by default. Just used camalot's display pic (nearest I could find :p) as an example.

    1.71:
    Minor update to allow user to choose if he wants to be prompted before clearing frequently called.

    1.7:
    Added settings to hide contact pictures in contacts. Requires a restart of Contacts app though. Will fix in future (lowest-priority :p)
    Added ability to show seconds as well when using exact times for call log.
    Clear frequently called numbers is now available.
    Added preference setting to hide frequently called numbers altogether.
    Cleaned up the layout for Contacts a little (especially when hiding contact pictures).

    1.62:
    Small bugfix to fix the GTalk status icon in Contacts :).

    1.6:
    Added call button beside for Contacts. Only contacts with numbers will have the dial button (see attached screenshot for idea). Also implemented it into preferences in case you want to turn it off. Note that this affects Favourites as well.

    1.53:
    Added ChainsDD's preferences. It's much better implemented than my previous one :). Also has the same voicemail handlers as his now.

    1.52:
    Fixed a FC bug that some people reported. Thanks to regunus for the logcat, and a friend of mine for testing :).

    1.51:
    Added the drawable for navigation (by me, I suck at graphics but hey.)
    Fixed a small bug with Navigation showing even if Maps installed does not support it (non-issue really, everyone should be on 3.3.1 by now).

    1.5:
    Navigate to... is now an option when viewing a contact.

    1.4:
    Implemented function to clear all call logs of a particular name or number.

    1.3 (151209):
    Implemented a menu item to show total call time so far. Also added a prompt before call log is cleared. Screenshots added.

    1.2:
    Call log now shows actual time instead of relative time. For now it will default to 12 or 24-hour depending on your system settings. May make it an option to have configurable formatting options in future.

    1.1:
    Didn't know that github files were incomplete. Fixed.
    Added new drawables for the SMS function.
    Re-wrote SharedPrefs portion. Bug with Dialer not reading settings should hopefully be fixed now.

    1.0:
    Changed the version naming
    Added SMS as an option for the left action button (in addition to voicemail and add to contacts).

    141209:
    Long-press on "Dial" button now activates voice dialer as well.
    Delete button remains disabled until at least one number is entered. However, there's a known bug with this (see below).

    As of 131209:
    Added sensor-based rotation
    Added preferences panel so you can choose whether to use voicemail or "add to contacts" for left action button
    Recoded the "1", it'll show a voicemail symbol if you have voicemail. Also, long-pressing it if you do not have voicemail no longer does anything.

    Previous releases:
    2.7: http://www.mediafire.com/file/nimyzygoagm/Contacts_wysie_2.7_apk.zip
    2.62: http://www.mediafire.com/file/f0wneihmdhn/Contacts_wysie2.62_apk.zip
    2.61: http://www.androidspin.com/downloads.php?dir=wysie/APP/&file=Contacts_wysie2.61_apk.zip
    2.6: http://www.mediafire.com/file/oozkkznjzm3/Contacts_wysie_2.6_apk.zip
    2.51: apk: http://www.mediafire.com/file/5kyy2gnngo3/Contacts_wysie_2.51_apk.zip
    2.5: http://www.mediafire.com/file/winncmj2wm4/Contacts_wysie2.5_apk.zip
    2.34: http://www.mediafire.com/file/w2kz4mz5vnq/Contacts_wysie2.34_apk.zip
    2.33: http://www.mediafire.com/file/yaj0ndzgogm/Contacts_wysie2.33_apk.zip
    2.32: http://www.mediafire.com/file/yyi2zimg115/Contacts_wysie2.32_apk.zip
    2.31: http://www.mediafire.com/file/dx24c2tztym/Contacts_wysie2.31_apk.zip
    2.3: http://www.mediafire.com/file/ket2ynfw4nh/Contacts_wysie2.3_apk.zip