Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Android image from
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 at 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 at 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 at 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 at 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
0 George Jonsson 175
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 5 Apr 2013
Copyright © CodeProject, 1999-2014
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