Android Question Which device, and Android version ?

MitchBu

Active Member
Licensed User
I am implementing a crash report in the Application_Error event that sends back to my web site.

Is there a way to detect the name of the device the app runs on, as well as the running Android version ?

TIA
 

JohnC

Well-Known Member
Licensed User
B4X:
Sub GetDeviceInfo As String
      Dim P As Phone
      Dim manu As String = p.Manufacturer
      Dim modl As String = p.Model
      Dim prod As String = p.Product
      Return manu & " - " & modl & " - " & prod
End Sub

Sub GetDeviceAPILevel () As Int
    Dim P As Phone
    Return p.SdkVersion
End Sub
 
Last edited:
Top