码迷,mamicode.com
首页 > 移动开发 > 详细

android 陌生人电话不显示其归属地

时间:2014-09-25 11:53:48      阅读:445      评论:0      收藏:0      [点我收藏+]

标签:android   style   color   io   java   strong   for   sp   on   

  修改DefaultCallLogInsertionHelper.java (alps\packages\providers\contactsprovider\src\com\android\providers\contacts)

    @Override

    public void addComputedValues(ContentValues values) {

        // Insert the current country code, so we know the country the number belongs to.

        String countryIso = getCurrentCountryIso();

        /// M: @{

        Log.d(TAG, "addComputedValues() countryIso == [" + countryIso +"]");

        Log.d(TAG, "addComputedValues() geocoded == [" + getGeocodedLocationFor(values.getAsString(Calls.NUMBER), countryIso) +"]");

        /// @}

        values.put(Calls.COUNTRY_ISO, countryIso);

        // Insert the geocoded location, so that we do not need to compute it on the fly.

        //mtk add

        String name = values.getAsString(Calls.NAME);

        if(name == null || name.equals("")){

            return;

        }

        //mtk add end     

        values.put(Calls.GEOCODED_LOCATION,

                getGeocodedLocationFor(values.getAsString(Calls.NUMBER), countryIso));

    }

android 陌生人电话不显示其归属地

标签:android   style   color   io   java   strong   for   sp   on   

原文地址:http://blog.csdn.net/sergeycao/article/details/39395369

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!