B4A2.22 cann't answer my widget

Theera

Expert
Licensed User
Longtime User
Hi Erel,
I 'm just downloading B4A2.22,and test my old widget again.But it cann't do this which my target post#14 . I need to know how to do.

Best Regards
Theera
 

Theera

Expert
Licensed User
Longtime User
B4A2.22 has bug with Emulator Level10(Android2.3.x)

Hi all,
I 'm sure to resolved my problem. about this code belows.
B4X:
  If Activity.Height > Activity.Width Then  
           'For Portrait done   
            msgbox(GetOrientation ,"")
             Else 
           'For Landscape done
                    msgbox(GetOrientation ,"") 
            End If

B4X:
Sub GetOrientation As Int 'Erel's function
                  Dim r As Reflector
                  r.Target = r.GetContext
                  r.Target = r.RunMethod2("getSystemService", "window", "java.lang.String")
                  r.Target = r.RunMethod("getDefaultDisplay")
                  Return r.RunMethod("getOrientation")
End Sub

I have test with emulators avd8,avd10,avd15 and avd16,it has error only avd10.

Best Regards
Theera
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
Please help me test this

Hi all,
Please test my widgit about test orient of layout (Portrait and Landscape) with press ctrl+11 . This test with emulators (avd8,avd10,avd15,and avd16).
You will see that avd10 after press ctrl+11 is different from others.
P.S. @Erel,I'm sorry about post is wrong location.
Best Regards
Theera
 
Last edited:
Upvote 0
Top