My question is the following as it can be done to send images in intents using bundles. A serious example I have an activity in which pressing an Imagebutton happens to the next in which I want to put the image that had the button. But instead of a single button I have 4 in an acitvity.
public void btn_hombre(View view) {
if (hombre.isChecked() == true && hombre_bajo.isClickable()) {
Intent intent = new Intent(GeneroActivity.this,holaActivity.class);
intent.putExtra("hombre_alto", R.drawable.hombre_alto);
startActivity(intent);
}else if (hombre_normal.isClickable()) {
Intent intent = new Intent(GeneroActivity.this, IMCActivity.class);
intent.putExtra("hombre_pequeño", R.drawable.hombre_pequeño);
startActivity(intent);
}else if (hombre_sobrepeso.isClickable()) {
Intent intent = new Intent(GeneroActivity.this, IMCActivity.class);
intent.putExtra("hombre_sobrepeso", R.drawable.hombre_sobrepeso);
startActivity(intent);
}else if (hombre_sobrepeso1.isClickable()) {
Intent intent = new Intent(GeneroActivity.this, IMCActivity.class);
intent.putExtra("hombre_sobrepeso1", R.drawable.hombre_sobrepeso1);
startActivity(intent);
}
Something like that I send to the second activity.
The detail is not how to receive it in the second activity to activate a conditional to show the corresponding image in the imageview. as selected. Thanks in advance for the help.