I have set the permissions, because of which it works on 2 devices.  My
only concern is the code is not consistent on all devices, not sure what
mistake I have done.

-Ankur.

On Tue, Nov 8, 2011 at 9:09 PM, Pawan Singh Rathore <
pawan.s.rath...@gmail.com> wrote:

> Have you set permission to access SDCard in manifest file ?
> These silly mistakes I often do.
> Thanks & BR,
> Pawan Rathore
>
>
>
>
> On Wed, Nov 9, 2011 at 10:09 AM, Ankur Avlani <ankuravl...@gmail.com>wrote:
>
>> Hi,
>>
>> The following code returns a null Cursor to me
>>
>> String[] projection = {MediaStore.Images.Media._ID};
>>  // Create the cursor pointing to the SDCard
>> Cursor cursor = managedQuery(
>> MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
>>  projection, // Which columns to return
>> null,       // Return all rows
>>  null,
>> null);
>>
>> I have tried the code on 3 devices, 2 devices it works fine, 1 devices it
>> returns null.  Can someone guide me a better way to get image details from
>> android SQL Lite, so that it works on all devices. (These devices are
>> android 2.3).
>>
>> Also, I am not able to query using where clause, basically I want to just
>> get incremental cursor of 10 records on each user interaction.
>>
>> Any pointers is appreciated.
>>
>>
>> Thanks,
>> Ankur
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Reply via email to