Android Question Which device, and Android version ?

MitchBu

Well-Known Member
Licensed User
Longtime 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

Expert
Licensed User
Longtime 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:
Upvote 0
Top