android - MIMETYPE returning null in CursorLoader -


i have listfragment has cursoradapter inflating row items. using android contact provider inflating list items. able add custom mimetype contacts contactprovideroperation.the value inserted expected. when trying use custom mimetype selection parameter returning cursorloader not working. below code:

return new cursorloader(getcontext(), data.content_uri, new string[]{data.contact_id,data.data1}, data.mimetype+"= ?", new string{"vnd.cursor.item/mimetype"}, null) 

i added breakpoint selection. seems cursorloader not accepting mimetype selection parameter.please me on this.

below code add data:

arraylist<contentprovideroperation> ops = new arraylist<contentprovideroperation>(); ops.add(contentprovideroperation.newupdate(data.content_uri) .withselection(data.contact_id+"= ?"+data.mimetype+"= ?", new string[]{contactid,"vnd.cursor.item/mimetype"}) .withvalue(data.data1, 0).build()); getcontentresolver().applybatch(contactscontract.authority, ops);


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -