We all know android has content provider, and we can access these data with content resolver,

 

1) add permission,

        <uses-permission android:name="android.permission.READ_CONTACTS" />

2) getContentResolver

        ContentResolver cr = getContentResolver();
        Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI,

3) Enumerate and Query



For other data, for example, sms,etc,  it‘s similar, the only different is the uri, have fun!

Reference: 
 1) http://www.higherpass.com/Android/Tutorials/Working-With-Android-Contacts/
 2)  http://developer.android.com/guide/topics/providers/content-providers.html
 
 

相关文章:

  • 2021-04-05
  • 2021-08-11
  • 2021-07-23
  • 2021-12-01
  • 2021-10-31
  • 2022-12-23
  • 2021-05-22
  • 2021-12-07
猜你喜欢
  • 2021-12-25
  • 2021-09-20
  • 2022-02-28
  • 2022-12-23
  • 2021-11-13
  • 2022-03-01
  • 2021-12-09
相关资源
相似解决方案