Friday, 15 August 2014

android - Can an emulator have a unique device ID? And can you use that ID? -



android - Can an emulator have a unique device ID? And can you use that ID? -

i making web app using html5 , phonegap, , using uuid one-time login instead of standard username/password combination. instead of having client manually type in uuid, want automatically grab uuid device , login using information. there phonegap plugin called device, allows access device's uuid.

when seek test uuid retrieval on genymotion, emulator, error. think error because using emulator , not device.

edit: found identifiers on genymotion, not free. still wondering whether can utilize id information.

you can set uuid emulator.

you need start emulator this

emulator -avd jbx86 -prop emu.uuid=5ec33f90-a471-11e2-9e96-0800200c9a66

basically emulator uuid returns null. hard coded. can set @ startup.

answers taken here

see this more example, in 'detecting right emulator' section.

android cordova emulator uuid

No comments:

Post a Comment