Hello,

I am on the same case than you, when I perform stress test, sometime
my content resolver is Null.
So I add null check and retry the getContentResolver() it seem to
correct the issue for the moment.

Bye
SnkmN

On 4 déc, 07:25, Dan <[email protected]> wrote:
> Hi All,
>
> I have an application to read the Android contacts, and I use
> ContentResolver.query() to query the data.
> Sometimes, I get the required data, but on other times, I get a null
> cursor. For example,
>
> context.getContentResolver().query(Contacts.CONTENT_URI, projection,
>                 Contacts.IN_VISIBLE_GROUP + "=?", new String[]
> { "1" }, null);
>
> This inconsistency makes me big trouble. Of course, I can check the
> cursor is null or not before I use it, but does it make sense even if
> I knew it was null, query again? What I need is the right result.
>
> My question is the null cursor is normal? Or my use of the content
> provider has something wrong?
> Any help will highly appreciated!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to