I'm trying to asynchronously query another apps ContentProvider, but it's not going too well so far. I am able to query the database and get a result, but only synchronously (even with an asynchronous implementation).
I have created the following implementation of AsyncQueryHandler:
gist.github.com/Healios/4024afa6f73eaafc8ced291fbbfa75c9#file-dbasyncqueryhandler-cs
I am using the AsyncQueryHandler in my service in the following way:
gist.github.com/Healios/4024afa6f73eaafc8ced291fbbfa75c9#file-xxdbservice-cs
I am using the service in my ViewModel in the following way:
gist.github.com/Healios/4024afa6f73eaafc8ced291fbbfa75c9#file-testpageviewmodel-cs
With the above, supposedly asynchronous implementation, the UI still locks up/freezes. What am I doing wrong?
I need to be able to do asynchronous CRUD operations.
Does anyone have any experience in this area? It's not like it's booming with documentation on this subject.
Answers
You can upload a basic demo, which will help others find the question quickly.