android - store,then send the image from camera to other activity -


There are three options for displaying the Hello photo in another activity Option One Memory Card, Camera, Horizontal of Images list View. Whatever the user can choose from this, but the image should be displayed in the next activity image view. Please guide me for further !! Just open the camera and memory card and after that I do not know how to send this next activity. Actually, you need to pass the image information for the next activity of intent.

You should use it:

  intent = intent (new activity); first activity, second activity.); Intent.putExtra ("file name", "SEE_BELOW"); StartActivity; Option A: If you are using an image from the SDCard - replace the SEE_BELOW with the actual string of the image path. Option B: Use the  on2selected  method in  arg2  to get the selected position in the list - from the list list you're getting the image and Drag the image from there, save it in the SD, and send the string path like in the option A. Option C: If you are receiving the image from the camera - I save the image in the SD, and then send the straight path through the intent of A to A.  

Now, in your second activity, you call in the onCreate method:

  intent = mutual (); String image = intent.getStringExtra ("fileName");   

Now you have an image address in your image variable - just set it in your image and you have done it!

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -