Click here to Skip to main content
12,064,207 members (61,062 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Mobile Android image
i want java code in android that makes the user select an image from his SD card then it is viewed in an imageViewer
i already have the selector code

Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
photoPickerIntent.setType("image/*");
startActivityForResult(photoPickerIntent, 1);
what i dont know is the selected image i cant view it on the image viewer
Posted 28-Mar-13 2:26am
Edited 28-Mar-13 2:38am
v2
Comments
ThePhantomUpvoter 28-Mar-13 7:32am
   
Okay and did you write some java code to accomplish your goal? Did you have some question to ask about the code that you have written?
Khaled Mohamed El Sawy 28-Mar-13 7:33am
   
Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
photoPickerIntent.setType("image/*");
startActivityForResult(photoPickerIntent, 1);
this code is the selector but i dont know how to view it on the image view
SRSHINDE 29-Mar-13 10:13am
   
Please visit http://www.coderanch.com/t/443531/Android/Mobile/display-Images-stored-sdcard which I hope will be useful for you.
Khaled Mohamed El Sawy 2-Apr-13 10:36am
   
thanks that was helpful.

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160204.4 | Last Updated 5 Apr 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100