Click here to Skip to main content
15,883,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Updated 28-Mar-13 1:38am
v2
Comments
[no name] 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
Sudhakar Shinde 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

 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900