I want to have an image sent from recipe_button_list.java to recipe_display_screen.java, and my current code highlights an error in my code...
This is how image is being sent in recipe_button_list:
Intent i= new Intent(getBaseContext(),recipedisplayscreen.class);
//Sending data to the next screen
i.putExtra("textView1", inputIngredients1.getText().toString());
i.putExtra("textView2", inputMethod1.getText().toString());
i.putExtra("image_string",R.drawable.blustudios);
Log.e("n", inputMethod1.getText()+"."+ inputIngredients1.getText());
This is how image is recieved in recipe_display_screen:
Intent i = getIntent();
String Ingredients = i.getStringExtra("textView1");
String Method = i.getStringExtra("textView2");
String RecipeImage = i.getStringExtra("image_string");
And this is how it is set (gives error(highlights setImageResource)
MethodDisplay.setText(Method);
IngredientsDisplay.setText(Ingredients);
RecipeDisplay.setImageResource(RecipeImage);
What is my error???
Thanks in advance :P