Olaan Expert Licensed User Longtime User Oct 15, 2012 #1 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
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
Olaan Expert Licensed User Longtime User Oct 18, 2012 #2 B4A2.22 has bug with Emulator Level10(Android2.3.x) Hi all, I 'm sure to resolved my problem. about this code belows. Code: Copy If Activity.Height > Activity.Width Then 'For Portrait done msgbox(GetOrientation ,"") Else 'For Landscape done msgbox(GetOrientation ,"") End If Code: Copy 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
B4A2.22 has bug with Emulator Level10(Android2.3.x) Hi all, I 'm sure to resolved my problem. about this code belows. Code: Copy If Activity.Height > Activity.Width Then 'For Portrait done msgbox(GetOrientation ,"") Else 'For Landscape done msgbox(GetOrientation ,"") End If Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Oct 18, 2012 #3 You should post bugs in the correct forum. Though this is not a bug. You are calling a native Java method. If the value returned is wrong than the problem is in this device. Upvote 0
You should post bugs in the correct forum. Though this is not a bug. You are calling a native Java method. If the value returned is wrong than the problem is in this device.
Olaan Expert Licensed User Longtime User Oct 19, 2012 #4 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: Jan 24, 2013 Upvote 0
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
Erel B4X founder Staff member Licensed User Longtime User Oct 19, 2012 #5 What I meant is that it is not a bug in Basic4android. There nothing that can be done about it. Upvote 0