S straybullet Member Licensed User Longtime User Dec 28, 2011 #1 Is there a way to detect when an app is being ran in the emulator?
NJDude Expert Licensed User Longtime User Dec 28, 2011 #2 You could use: (You will need to reference the Phone library) B4X: 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: Dec 28, 2011 Upvote 0
You could use: (You will need to reference the Phone library) B4X: 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.
S straybullet Member Licensed User Longtime User Dec 30, 2011 #3 Thanks for the tip! NJDude said: You could use: (You will need to reference the Phone library) B4X: 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. Click to expand... Upvote 0
Thanks for the tip! NJDude said: You could use: (You will need to reference the Phone library) B4X: 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. Click to expand...