I have a problem that should be simple, I want to move to another activity, a drawable as a parameter.
Here's my Onclick function:
img1.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
Intent it = new Intent(List.this, StoryActivity.class);
Drawable d = getResources().getDrawable();
it.putExtras();
startActivity(it);
}
});
For example, I have an image file called img1.jpg.
I want this function to pass to the other activity this parameter, so that as soon as the second activity is triggered it will know which file to display.