Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementing AsyncQueryHandler

I am trying to implement AsyncQueryHandler because I am experiencing the same exact problem in this link but I dont see any example or anything about implementing it.

I tried doing

AsyncQueryHandler handler = new AsyncQueryHandler(getContentResolver());

since that is what the constructor shows in the docs but I get an error saying cannot instantiate the type AsyncQueryHandler so how do I use it then?

like image 543
tyczj Avatar asked Aug 14 '12 22:08

tyczj


1 Answers

It's so convenient:

AsyncQueryHandler handler = 
    new AsyncQueryHandler(mActivity.getContentResolver()) {};
handler.startUpdate(-1, null, sessionUri, values, null, null);
like image 60
Crossle Song Avatar answered Oct 03 '22 22:10

Crossle Song