Reputation: 2045
I am making a web app using HTML5 and PhoneGap, and I am using the uuid as a one-time login instead of the standard username/password combination. Instead of having the client manually type in the uuid, I want to automatically grab the uuid from the device and login using that information. There is a PhoneGap plugin called Device, which allows you to access your device's uuid.
When I try to test the uuid retrieval on Genymotion, my emulator, I get an error. I think the error is because I am using an emulator and not a device.
EDIT: I found the identifiers on Genymotion, but it is not free. I am still wondering whether I can actually use the ID information.
Upvotes: 4
Views: 15016
Reputation: 41
Here "jbx86" is the AVD name that you may have used during emulator creation under "Android Virtual Device Manager"
Upvotes: 0
Reputation: 8940
You can set uuid for a emulator.
You need to start the emulator like this
emulator -avd jbx86 -prop emu.uuid=5ec33f90-a471-11e2-9e96-0800200c9a66
Basically emulator uuID always returns null. They are hard coded. So you can set at startup.
Answers are taken from here
See this for more example, in the 'Detecting correct emulator' section.
Upvotes: 6