Detect emulator?

You could use: (You will need to reference the Phone library)

Code: Copy
Dim pID As PhoneId

If pID.GetDeviceId  = "000000000000000" Then '15 zeroes

   MsgBox("Running on emulator", "")

End If

Some clone/cheap devices might have zeroes there as well.
 
Last edited:
Upvote 0
Back
Top