MitchBu Well-Known Member Licensed User Longtime User Sep 3, 2019 #1 When I use the method at https://www.b4x.com/android/forum/t...matescreensize-vs-activitysize.50846/#content I get 8"x 5". But my tablet is exactly 8.5" x 5.5". Erel recommends to use the method in the post below to get the exact size, but I don't see how I can apply that. https://www.b4x.com/android/forum/threads/same-physical-display-size.14037/#post-79434 I will appreciate help.
When I use the method at https://www.b4x.com/android/forum/t...matescreensize-vs-activitysize.50846/#content I get 8"x 5". But my tablet is exactly 8.5" x 5.5". Erel recommends to use the method in the post below to get the exact size, but I don't see how I can apply that. https://www.b4x.com/android/forum/threads/same-physical-display-size.14037/#post-79434 I will appreciate help.
yfleury Active Member Licensed User Longtime User Sep 3, 2019 #2 I am not sure, but if the home button is software (visible only with device in turn on) then this is why it show smaller. The best is to provide us a screen shot Upvote 0
I am not sure, but if the home button is software (visible only with device in turn on) then this is why it show smaller. The best is to provide us a screen shot
MitchBu Well-Known Member Licensed User Longtime User Sep 3, 2019 #3 No, this device (Samsung Galaxy Tab A) has a hardware home button. I am sure Erel will explain how to use what he linked to. Upvote 0
No, this device (Samsung Galaxy Tab A) has a hardware home button. I am sure Erel will explain how to use what he linked to.
yfleury Active Member Licensed User Longtime User Sep 3, 2019 #4 have you this a top of Main With that, my app have no title, and no top or buttom bar Upvote 0
William Lancee Well-Known Member Licensed User Longtime User Sep 3, 2019 #5 B4X: Dim r As Reflector r.Target = r.GetContext r.Target = r.RunMethod("getResources") r.Target = r.RunMethod("getDisplayMetrics") Log(r.GetField("xdpi")) Log(r.GetField("ydpi")) Log(GetDeviceLayoutValues.Width/r.GetField("xdpi")) Log(GetDeviceLayoutValues.Height/r.GetField("ydpi")) Upvote 0
B4X: Dim r As Reflector r.Target = r.GetContext r.Target = r.RunMethod("getResources") r.Target = r.RunMethod("getDisplayMetrics") Log(r.GetField("xdpi")) Log(r.GetField("ydpi")) Log(GetDeviceLayoutValues.Width/r.GetField("xdpi")) Log(GetDeviceLayoutValues.Height/r.GetField("ydpi"))
MitchBu Well-Known Member Licensed User Longtime User Sep 4, 2019 #6 Great. I just tried, and it is extremely precise. Since my app is printing on a letter size sheet of paper, I will be able to present the user with Wysiwyg on the screen when a tablet offers 8 1/2 inches wide. Thank you William Last edited: Sep 4, 2019 Upvote 0
Great. I just tried, and it is extremely precise. Since my app is printing on a letter size sheet of paper, I will be able to present the user with Wysiwyg on the screen when a tablet offers 8 1/2 inches wide. Thank you William