how to initialse onConfigurationChanged code in main method contructor i wnt to initialse this code here …
public CustomExtension(ComponentContainer componentContainer)
{
super(componentContainer.$form());
this.container = componentContainer;
}
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
if(newConfig.orientation==Configuration.ORIENTATION_LANDSCAPE){
Log.e("On Config Change","LANDSCAPE");
}
else{
Log.e("On Config Change","PORTRAIT");
}
}