I call a method based on a boolean value. I try setting that value in onRetainNonConfigurationInstance() to handle screen rotation but somehow it does not call the function correctly. What is the best method to call that will allow me to this:
public void methodName() //ideally something like onRotate()
{
if (booleanValue == true)
{
booleanValue2 = false;
method1();
}
else
{
booleanValue2 = true;
method2();
}
}
here
Maybe you’re looking for this: http://developer.android.com/reference/android/view/OrientationListener.html
onOrientationChanged(int)