In my application I am trying to get the connection type of the device using -

Code:
Ext.device.Connection.getType();
Doc Link.

But this causes my sencha build to fail, with the corresponding message and stack trace -

[ERROR] TypeError: 'undefined' is not an object
Stack trace:
file:///C:/Workspace/Wamp/www/myApp/sdk/src/device/connection/PhoneGap.js?_dc=1359875843545 : 8 : Ext.device.connection.PhoneGap#syncOnline
file:///C:/Workspace/Wamp/www/myApp/sdk/src/device/connection/PhoneGap.js?_dc=1359875843545 : 19 : Ext.device.connection.PhoneGap#getType
file:///C:/Workspace/Wamp/www/myApp/app/controller/Category.js?_dc=1359875843495 : 36 : myApp.controller.Category#launch
file:///C:/Workspace/Wamp/www/myApp/sdk/src/app/Application.js?_dc=1359875843442 : 609 : Ext.app.Application#onDependenciesLoaded
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7886 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 3192 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/src/app/Application.js?_dc=1359875843442 : 567 : Ext.app.Application#loadControllerDependencies
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7629 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7630 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7959 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 3178 : Anonymous
file:///C:/Workspace/Wamp/www/myApp/sdk/sencha-touch.js : 7648 : Anonymous
[ERROR] Failed loading your application from: 'file:///C:/Workspace/Wamp/www/myApp/index.html'. Try setting the absolute URL to your application for the 'url' item inside 'app.json'
Why is this?

I have included cordova 2.3.0 js in my index.html file, but haven't included it in the app.json. The reason behind this is that when I do that, the final build version doesn't work. It gets stuck while loading the splash screen, and simply doesn't move forward from this point. All I get is the splash screen being displayed. There is absolutely no console error too. I also tested this in the iOS simulator and in the actual device (ipad) with same results. So what I do is that include the cordova file in the index.html file and then manually copy the file in the build folder.

Is there any solution to above problems?

My sencha touch version is 2.0.1, and I am using the sencha build command (sencha app build production) to build the app.