Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Finally I found how this thing work</p> <p>First ContactsProvider add this value when calling DefaultCallLogInsertionHelper.addComputedValues </p> <p>see here</p> <p><a href="https://github.com/CyanogenMod/android_packages_providers_ContactsProvider/blob/ics/src/com/android/providers/contacts/DefaultCallLogInsertionHelper.java#L59" rel="nofollow">https://github.com/CyanogenMod/android_packages_providers_ContactsProvider/blob/ics/src/com/android/providers/contacts/DefaultCallLogInsertionHelper.java#L59</a></p> <pre><code>@Override public void addComputedValues(ContentValues values) { // Insert the current country code, so we know the country the number belongs to. String countryIso = getCurrentCountryIso(); values.put(Calls.COUNTRY_ISO, countryIso); // Insert the geocoded location, so that we do not need to compute it on the fly. values.put(Calls.GEOCODED_LOCATION, getGeocodedLocationFor(values.getAsString(Calls.NUMBER), countryIso)); } </code></pre> <p>so code you see</p> <pre><code>final String countryIso = callCursor.getString(COUNTRY_ISO_COLUMN_INDEX); final String geocode = callCursor.getString(GEOCODED_LOCATION_COLUMN_INDEX); </code></pre> <p>is actually reading from saved data</p> <p>So, real data are from PhoneNumberOfflineGeocoder which you can find here <a href="https://github.com/CyanogenMod/android_external_libphonenumber/blob/ics/java/src/com/android/i18n/phonenumbers/geocoding/PhoneNumberOfflineGeocoder.java" rel="nofollow">https://github.com/CyanogenMod/android_external_libphonenumber/blob/ics/java/src/com/android/i18n/phonenumbers/geocoding/PhoneNumberOfflineGeocoder.java</a></p> <p>That is something called <code>libphonenumber</code></p> <p><a href="https://code.google.com/p/libphonenumber/" rel="nofollow">https://code.google.com/p/libphonenumber/</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload