I am currently getting the name/platform/uuid of my android device using the following code:
Code:
var devicename = Ext.device.Device.name;
var deviceplatform = Ext.device.Device.platform;
var deviceid = Ext.device.Device.uuid;


var devicenameTextfield = Ext.ComponentQuery.query('textfield[name=devicename]')[0];
devicenameTextfield.setValue(devicename);


var deviceplatformTextfield = Ext.ComponentQuery.query('textfield[name=deviceplatform]')[0];
deviceplatformTextfield.setValue(deviceplatform);


var deviceidTextfield = Ext.ComponentQuery.query('textfield[name=deviceid]')[0];
deviceidTextfield.setValue(deviceid);
Sometimes it works perfectly. Other times it doesn't work at all and I get the values you would get if the singletons weren't supported. When I do not get values back I have to kill the app and restart it until I do.

I have also tried doing something like the below:

Code:
var device = new Ext.device.Device();


var devicename = device.name;
var deviceplatform = device.platform;
var deviceid = device.uuid;


var devicenameTextfield = Ext.ComponentQuery.query('textfield[name=devicename]')[0];
devicenameTextfield.setValue(devicename);


var deviceplatformTextfield = Ext.ComponentQuery.query('textfield[name=deviceplatform]')[0];
deviceplatformTextfield.setValue(deviceplatform);


var deviceidTextfield = Ext.ComponentQuery.query('textfield[name=deviceid]')[0];
deviceidTextfield.setValue(deviceid);
In a function I can keep calling until I get values back however this doesn't work at all. Does anyone have any ideas?

Thanks