Open cnrshantanu opened 11 years ago
also you dont need to modify the xml file Please check my commit
Reference - for adding folder options in runtime http://stackoverflow.com/questions/7063831/android-how-to-populate-a-charsequence-array-dynamically-not-initializing
Ok ... Thats great ... I am working on finding the folders with images ....
I checked your new commit... Only the folders are being listed... Ain't working at all... Crashing big time... Please check
Its working fine for me .... neverthelsess I will chk
And yes there are a few folders from which images are not being read ... the reading_files () fails when trying to read from those folders.
Yes exactly... I am getting null pointer exception in reading files function
Keep working and committing to your branch... I shall merge it once I am back
Well as far as I know . . You can use content providers to get folder paths, or I suggest you use content provider directly to set Images which are in their data base check out
Looks like we have to do this folder listing using java code only. The android "MediaStore.Images.Media._ID " wont be a good approach. It behaves different in different devices. Right now am able to access the folder with ".jpg" files from phone memory only. SD Card folders still at large.
This has been discussed. . We will go with content providers.
http://heliodorj.blogspot.co.uk/2009/04/androids-image-contentprovider-and.html
Choose folder to display from By default choose gallery album