user1254513
user1254513

Reputation: 71

Sencha Ext.device.Device HelloWorld Hangs

I am a newbie on Sencha, and carried 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 loads completely it hangs at blinking dots

I have tried google but can't see the issue, Please Help

Upvotes: 1

Views: 281

Answers (1)

M165437
M165437

Reputation: 967

If you are using Cordova 3.0 or higher you need add the cordova device plugin to cordova

$ cd cordova
$ cordova plugin add org.apache.cordova.device

and the feature to config.xml:

<feature name="Device">
    <param name="ios-package" value="CDVDevice" />
    <param name="android-package" value="org.apache.cordova.device.Device" />
</feature>

Upvotes: 2

Related Questions