the view that problem occurs has one button and one tabhost inside it. the button s onclick listener changes some text in current tab. the problem is when I change the orientation(port to land or land to port), the button s onclicklistener is called/skimmed somehow and text in current tab changes. why is this happening and what is the solution?
myActivity extends Activity{
onCreate(bundle){
..
..
add(button1);
button1.onClickListner(new OnClickListener(){
..
someAlertDialog.show(); //line xxx
});
}
}
it does not show any alert dialog actually(it is not supposed to do so) but says there is a leakage @line xxx in errorlog. the whole log is coming soon.
编辑:我现在不能错失,但是,在方向变化之后,我们仍会发生。