Store, then send the camera image to another activity

Hi, there are three options on my page so that the image appears in another action. Option 1 memory card, camera, horizontal viewing of a list of images. From this, that the user can choose, but the image should be displayed in the next image representation of the activity. Please help me do next! I just open the camera and the memory card, and after that I do not know how to send it to the next activity.

+3
source share
1 answer

Basically, you need to pass image information to the next action using Intent.

You should use:

Intent intent = new Intent(firstActivity.this, secondActivity.class);
intent.putExtra("fileName","SEE_BELOW");
startActivity(intent);

A: SD- - SEE_BELOW .

B: ListView - arg2 onItemSelected, , , , SD String, A.

C: - SD, String Intent, A.

, SecondActivity, onCreate :

Intent intent = getIntent();
String image = intent.getStringExtra("fileName");

image - ImageView, !

+1

All Articles