解决方案 »

  1.   

    http://kevinlynx.iteye.com/blog/845920
      

  2.   


    感谢,我按照他的代码写了段自己的,帮忙看看报错的原因,感谢!//address就是从content://sms/里取出来的address字段的数据
    Uri uri = Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, Uri.encode(address));
    //执行到这里出错了
    Cursor c = getContentResolver().query(uri, new String[] {"DISPLAY_NAME"}, null, null, null);
      

  3.   


    感谢,我按照他的代码写了段自己的,帮忙看看报错的原因,感谢!//address就是从content://sms/里取出来的address字段的数据
    Uri uri = Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, Uri.encode(address));
    //执行到这里出错了
    Cursor c = getContentResolver().query(uri, new String[] {"DISPLAY_NAME"}, null, null, null);
    报什么错?
      

  4.   

    系统是以int类型存储,你服务器获取数据库的时候,数据传输是用什么类型传的,这个要对应