getContentResolver.query(Images.Media.EXTERNAL_CONTENT_URI ...) returns null on device

by yves...@gmail.com » Mon, 13 Apr 2009 08:24:32 GMT


Sponsored Links
 This code works fine with the emulator, I can get a cursor to all the
images, but after I installed the app into the real device (G1), I ran
the app, this call returns null. If I change from EXTERNAL_CONTENT_URI
to INTERNAL_CONTENT_URI, at least it returns not null cursor and the
count is 0.

Anything I should do to get this to work?
--~--~---------~--~----~------------~-------~--~----~



getContentResolver.query(Images.Media.EXTERNAL_CONTENT_URI ...) returns null on device

by yves...@gmail.com » Mon, 13 Apr 2009 11:57:34 GMT


 Yes. But I figured it out. If I mount the device after plugged in
through USB, it won't be able to query. After I disconnect and then
reconnect the phone without mount the drive, i can get this to work.




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Still having issues.

Still unable to upload  and intermittent page load issues as of 22.50
GMT, April 2nd. Totally unacceptable...

-- 

2. Httposter could not be resolved

Hello every one,

This is the code I wrote a code for uploading data from android phone
to a server

String url = "http://www.orsas.com/ServiceMatalan.php";
                Map<String, String> kvPairs = new HashMap<String, String>();
                kvPairs.put("vehicle", dataRecord.toString());
                // Normally I would pass two more JSONObjects.....
                HttpResponse re = HTTPPoster.doPost(url, kvPairs);
                String temp = EntityUtils.toString(re.getEntity());
                if (temp.compareTo("SUCCESS")==0)
                {
                    Toast.makeText(this, "Sending complete!",
Toast.LENGTH_LONG).show();
                }


I get an error that  Httposter could not be resolved. Can anyone plese
help me out with this issue. Thanks in advance.


-- 

3. how to make timetable in android.

4. Facade Support

5. Fade in animation is not getting displayed?

6. Java Developer Needed in TN -- F2F required --

7. Passing member variables from AsyncTask