Hello all,

I'm always get stuck when I want to do some testing with my Classes  
which are working against the default providers.

For example, one method of my class meant to get all audio from  
MediaStore.Audio.Media.EXTERNAL_CONTENT_URI.

That's ok for implementation, but when I want to test it, problem comes.

I want to insert a data into  
MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, and get all audio from it  
to see whether the data I inserted has been got by my method.

In order not to break the existed data on emulator/device, I want to  
back up the data first.

But when I look at the Cursor returned by query that URI, I found  
there are 27 columns!
Even I can list these columns and get the correct data to backup,  
there is still a problem of maintenance of this test.

At first I tried to use getBlob to get data from each column, but the  
SQL checks failed.

Is there a way to easy back the data from a cursor?

Thanks for your consideration,
Johnny
--~--~---------~--~----~------------~-------~--~----~
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