Cursor phoneCursor = getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,null,ContactsContract.CommonDataKinds.Phone.CONTACT_ID + " = " + contactId,null,null);
報錯
報錯
2016-05-26
http://blog.csdn.net/yhaolpz/article/details/51304345 ContentProvider 詳細(xì)總結(jié)
2016-05-04
建表的sql語句在sqlitexpert中能創(chuàng)建出來,但是在SmsProvider中的query報沒有這個表的錯誤
2016-04-17
private void addTag(String contactName) {
TextView textView= (TextView) mInflater.inflate(R.layout.tag,mFlContacts,false);
}這個方法textview這一行報錯
Caused by: java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.TextView
TextView textView= (TextView) mInflater.inflate(R.layout.tag,mFlContacts,false);
}這個方法textview這一行報錯
Caused by: java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.TextView
2016-03-23
終于將源碼照抄下來了,也學(xué)到很多東西,源碼下載地址http://download.csdn.net/detail/yunjie167/9456050,不建議下載,最好自己跟著老師后面邊學(xué)邊敲.
2016-03-09