I’ve an example sencha touch2 application. It is working fine in my localhost browser(http://localhost/sencha/examples/navigationview/index.html).
Now i need to integrate this sencha applicaiton to android using phonegap 1.5.0.
i’ve downloaded phonegap libraries from phonegap
phonegap-phonegap-1.5.0-0-gde1960d.zip from phonegap website.
in that i’ve got cordova-1.5.0.js and cordova-1.5.0.jar file instead of phonegap.
I’ve gone through with phonegap site got to know that cordova-1.5.0 and phonegap is same.
I’ve followed this Get Started Guide
In that they have not given how to integrate sencha touch2 MVC file architecture. The basic example in get started guide is working fine for me.
My Problem is i couldnt able to integrate my sencha2 MVC file architecture. I’ve googled this but didnt get succeed. I’m doing any thing wrong here? Can you suggest me the right way to do this.
Thanks in Advance.
this is my index.html file
<!DOCTYPE HTML>
<html manifest="" lang="en-US">
<head>
<meta charset="UTF-8">
<title>Ajax</title>
<script type="text/javascript" charset="utf-8" src="cordova-1.5.0.js"></script>
<script id="microloader" type="text/javascript" src="development.js"></script>
</head>
<body>
</body>
</html>
In app.js file i’m getting Error:
//<debug>
Ext.Loader.setPath({ // line no. 2
'Ext': 'src'
});
//</debug>
Ext.Loaderis what allows your JS files to live in different folders inside theappfolder. Sencha Touch can dynamically load your files from the appropriate directory if you have configuredExt.Loaderas described in the tutorialThen just put the
index.htmltheappfolder and everything else intowwwfor Phonegap. It works just the same as a web page. To be completely explicit: