you must first have a static holder:
private static class Holder{
private List<BitmapDrawable>imageList = new ArrayList<BitmapDrawable>();
}
second, at the beginning of orientation, you should return the object that you want to receive after orientation:
@Override
public Object onRetainNonConfigurationInstance() {
return holder;
}
finally, when you create a “new” action, you must call getLastNonConfigurationInstance (). ANdroid will return your holder with your list.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
holder = (Holder) getLastNonConfigurationInstance();
}
: .