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. sigsuspend() hang-up

Hi Friends,

I am adding H/W video codec support  to opencore and the implementation
pseudocode is as follows :

1.  setup signal handler for SIGIO
2.  Send encoded data to h/w decoder
3.  call sigsuspend() , after masing (sigprocmask)  all other signals except
SIGIO.
4.  driver will send SIGIO once end of decoding by h/w.
5.  User space process will wake-up and process decoded data  .

Here, SIGIO is received by signal handler, but my user-space process (open
core decoder node process) is hanged and never wakes-up and hence blocked
within sigsuspend() .
Can anyone throw some ideas if you have faced similar problem ?

PS : I couldn't find any problem with signal handling mechanism as i test on
my host pc, with similar implementation.

Regards,
Shankar

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. maps in android 2.0

I just got Droid today and Google maps that come with phone much
better quality that I get via my app
Why?

-- 

3. multi-apk in one activity issue

4. how to achieve the camera function?

5. Regarding WebGL

6. Android 1.6, selective scaling possible?

7. Droid Sales figures