Emulator ID

  • Thread starter Thread starter Harry Simpson
  • Start date Start date
H

Harry Simpson

We have three developers hitting one server as far as syncing. We're giving
out data based on the hardwareID of the device which is an emulator - welp
we're all looking like the same device when we hit the server. How can I
designate my device to be unique even though it's only an emulator?

TIA

Harry
 
You could use a GUID for each instance which you only use when running on
emulators for test bed environments.

Simon.
 
Thanks Simon,

That could've worked but we're all using the same code from VSS and we're
having to get info from the database based on the hardware ID so gining it a
new GUID each time will never enable us to retrieve historic device data
from the database.....
Dim hwID As String = Util.GetHardwareID()

'Gets around the emulator's giving the same hdw ID for all emulators -HSS
6/11/2008

If hwID = "50006F0063006B006500740050004300000000" Then

hwID = Guid.NewGuid.ToString

End If

Any other ideas?

Harry
 
Hacky Pseudo code:
#if DEBUG
int number = ReadMyNumberFromFile ("MyNumber.txt");
if (number == 1) { uuid = ........; }
if (number == 2) { uuid = ........; }
if (number == 3) { uuid = ........; }
#else
use actual device UUID
#endif

Then you each have a MyNumber.txt with "1", "2", or "3" in it.

Hilton
 
As Hilton suggested, this is only a hack and you'd need to store a config
file which your app would read. I'd place the GUID in this config file. Of
course the only requirement here would be to individually configure each
device if you getting this config from VSS.
 
MS you listening? we need a way to assign a GUID in the Emulator Properties
of the Emulator program.

Thanks
Harry
 
Back
Top