S Spacewalker Member Licensed User Longtime User Jan 2, 2013 #1 Hello, how can I find out if my app runs on an emulator or real device? Heinz
M MLDev Active Member Licensed User Longtime User Jan 2, 2013 #2 This works on every device and emulator I've tried. B4X: Sub inEmulator As Boolean Dim r As Reflector Dim brand As String = r.GetStaticField("android.os.Build", "BRAND") Return "generic" = brand.ToLowerCase End Sub Upvote 0
This works on every device and emulator I've tried. B4X: Sub inEmulator As Boolean Dim r As Reflector Dim brand As String = r.GetStaticField("android.os.Build", "BRAND") Return "generic" = brand.ToLowerCase End Sub