Motorola Razer

ciginfo

Well-Known Member
Licensed User
Longtime User
Hello,
What is The definition of device motorola razer. My programs do not occupy the entire screen but only a small part.
Should I change all files in the designer? It's going to be hard work.
 

ciginfo

Well-Known Member
Licensed User
Longtime User
In the raz r, the bottom and the right slide of the screen are empty with my applis.
I think that resolution is 960 X 540 but what is the scale: 1 or 1.5 ?
 
Upvote 0

timo

Active Member
Licensed User
Longtime User
Can you post the result of this?

B4X:
Sub Process_Globals
   
End Sub

Sub Globals
      
   Dim W,H As Int
   Dim S As Float
   Dim dpi As String
   
End Sub

Sub Activity_Create(FirstTime As Boolean)
test
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub


Sub test

W=GetDeviceLayoutValues.Width
H=GetDeviceLayoutValues.Height
S=GetDeviceLayoutValues.Scale

If S= 0.75 Then
dpi="120"
End If
If S= 1 Then
dpi="160"
End If
If S= 1.5 Then
dpi="240"
End If
If S=2 Then
dpi="320"
End If

Msgbox("Widht=" & W & " Height=" & H & " dpi=" & dpi & " Scale=" & S  ,"ScreenDevice")   

activity.Finish

End Sub
 
Upvote 0

ciginfo

Well-Known Member
Licensed User
Longtime User
Unfortunately I have not motorola raz r. Just a friend who tried my application on the Motorola and I will not see him again soon.
 
Upvote 0
Top