cnrshantanu / LiveWallpaper_Main

Wallpaper for controlling facebook pictures
1 stars 0 forks source link

Choosing folder to display from, #10

Open cnrshantanu opened 11 years ago

cnrshantanu commented 11 years ago

Choose folder to display from By default choose gallery album

cnrshantanu commented 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

spkchetry commented 11 years ago

Ok ... Thats great ... I am working on finding the folders with images ....

cnrshantanu commented 11 years ago

I checked your new commit... Only the folders are being listed... Ain't working at all... Crashing big time... Please check

spkchetry commented 11 years ago

Its working fine for me .... neverthelsess I will chk

spkchetry commented 11 years ago

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.

cnrshantanu commented 11 years ago

Yes exactly... I am getting null pointer exception in reading files function

cnrshantanu commented 11 years ago

Keep working and committing to your branch... I shall merge it once I am back

cnrshantanu commented 11 years ago

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

spkchetry commented 11 years ago

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.

cnrshantanu commented 11 years ago

This has been discussed. . We will go with content providers.

http://heliodorj.blogspot.co.uk/2009/04/androids-image-contentprovider-and.html