Re: [android-developers] ManagedQuery for Images returns null

2011-11-09 Thread Ankur Avlani
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

[android-developers] ManagedQuery for Images returns null

2011-11-08 Thread Ankur Avlani
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

Re: [android-developers] ManagedQuery for Images returns null

2011-11-08 Thread Pawan Singh Rathore
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 =