Hello,
i'm working on a Chat APP and would like to start with the Landscape mode too.
I'm using the Network Lib and on every Screen Orientation the Connection to the Active socket gets lost and ofc the views get destroyed.
I found an interesting line to add in the Manifest XML:
which will prevent the Activity to be Destroyed and an Event should be raised when the Screen Orientation change:
Is there a way to realise this in B4A without an extra Lib? (or if there is one which is the Name?)
Thanks in advance.
i'm working on a Chat APP and would like to start with the Landscape mode too.
I'm using the Network Lib and on every Screen Orientation the Connection to the Active socket gets lost and ofc the views get destroyed.
I found an interesting line to add in the Manifest XML:
B4X:
android:configChanges="keyboardHidden|orientation"
B4X:
@Override
public void onConfigurationChanged(Configuration newConfig) {
}
Is there a way to realise this in B4A without an extra Lib? (or if there is one which is the Name?)
Thanks in advance.