I have activity with android:configChanges="orientation|keyboardHidden"
I am trying to change image in ImageView when the device orientation changes with:
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
// refresh the instructions image
ImageView instructions = (ImageView) findViewById(R.id.img_instructions);
instructions.setImageResource(R.drawable.img_instructions);
}
This only works the first time when the phone is rotated but not after that.
Can someone pls tell me why this happens?