Why do I sometimes get a null return, from ContentResolver query?

by sandy8531 » Sun, 08 Mar 2009 09:56:01 GMT

Sponsored Links
 My external sdcard is connected, mounted and functional. I have over
1000 songs on the sdcard, however occasionally this query returns a
null Cursor to me.

Can someone shed some light as to why this happens ? Can I get this is
the underlying table is locked by another thread ? Should I take a
null return from the query to mean a temporary error ?

String[] cols = {

Cursor c = context.getContentResolver().query
Media.IS_MUSIC + " = 1",


Other Threads

1. Android Market - subscription based payment or workarounds?


1. Does the Android Market supports subscription based payment?

if not

2. Can we sell the application for one year at a time? Or is this
against the Android Market rules?
3. Do we get any information when the user purchases the application
so we can track who has purchased the application?

Christer Nordvik

2. Why Japanese Developers can't publish paid app?

On Sun, Feb 15, 2009 at 6:06 PM, dzsuz...@daidai-web.com <

You can stock paid apps with us: http://slideme.org



3. Latitude

4. How to change the Userinterface Surface?

5. Warnings when launching emulator for SDK 1.1

6. Question about sqlite query with regular expression

7. Draging tha markers