Private Sub InitForTablet
Dim nativeActivity As JavaObject = GetContext
nativeActivity.RunMethod("setRequestedOrientation", Array As Object(0)) 'force to landscape
Activity.LoadLayout("tablet_main")
End Sub
Private Sub InitForPhone
Dim nativeActivity As JavaObject = GetContext
nativeActivity.RunMethod("setRequestedOrientation",Array As Object(1)) 'force to portrait
Activity.LoadLayout("phone_main")
End Sub
Sub GetContext As JavaObject
Dim jo As JavaObject
jo.InitializeContext
Return jo
End Sub