show gallery to select image file from sd card

Put your problem here if it does not fit any of the other categories.

show gallery to select image file from sd card

Postby burakkilic » Mon Dec 14, 2009 9:32 am

Hi, I want that user can select image files to upload from the sd card. How can I do that?
burakkilic
Developer
Developer
 
Posts: 37
Joined: Thu Oct 01, 2009 10:24 am

Top

Postby stifry » Tue Dec 15, 2009 5:57 pm

Use the following intent.

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
  3.  
  4. photoPickerIntent.setType("image/*");
  5.  
  6. startActivityForResult(photoPickerIntent, 1);
  7.  
  8.  
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


Jeff
Visit Trackaroo.com!
Trackmaster - Motorsports Lap Timer
Dynomaster - Performance Dyno
Image Image
User avatar
stifry
Developer
Developer
 
Posts: 46
Joined: Tue Feb 17, 2009 7:50 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google Feedfetcher and 12 guests