lundi 17 mars 2014

Sencha Ext.device.Device HelloWorld Hangs

I am a newbie to Sencha, and carried and out the following steps:



sencha -sdk ~/SDKs/sencha/touch-2.3.1/ generate app HelloWorld HelloWorld

cd HelloWorld

sencha cordova init com.example.HelloWorld HelloWorld

Then update cordova.local.properties with cordova.platforms=android


Followed by:

cd cordova

cordova platform add android

sencha app build native

cordova run

Helloworld loads ok on Android Tablet



Original app.js was

requires: [ 'Ext.MessageBox'],

This was amended to

requires: [ 'Ext.MessageBox', 'Ext.device.Device'],


Followed by:

sencha app build native

cordova run

Helloworld doesn't load completely it hangs at blinking dots



I have tried google searches but can't see any help on the issue. I am trying out the deviceapi sample next amendment to app,js would be to add:



alert([ 'Device name: ' + Ext.device.Device.name, 'Device platform: ' + Ext.device.Device.platform, 'Device UUID: ' + Ext.device.Device.uuid].join('\n'));

Then once this works add: notification, camera, geolocation views etc. as per deviceapi example code



Thank you in advance.






Aucun commentaire:

Enregistrer un commentaire