Trying to load Contact photos for use with gallery widget...

All your problems with Audio, Video and Images.

Trying to load Contact photos for use with gallery widget...

Postby Jogan » Tue Aug 03, 2010 4:54 pm

Hello Anddev.org community,
I am trying to load my contact photos into a gallery widget but am stuck. I followed the gallery.widget tutorial but that only shows how to load images saved into the drawable folder. I just want to pull contact photos from my phone (such as the synced facebook photos) and place them into the galley widget. Is there a way to do this.

I'm assuming the code to populate the gallery widget with these images is here:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. private Integer[] mImageIds = {
  2.        PLACED HERE?
  3.      };
  4.  
  5.      private ImageView[] mImages;
  6.      
  7.      public ImageAdapter(Context c) {
  8.       mContext = c;
  9.       mImages = new ImageView[mImageIds.length];
  10.      }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
Jogan
Freshman
Freshman
 
Posts: 2
Joined: Tue Aug 03, 2010 4:50 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 15 guests