Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha User
I have that in my app.js
Code:
launch: function() {
// Destroy the #appLoadingIndicator element
Ext.fly('appLoadingIndicator').destroy();
// Initialize the main view
Ext.Viewport.add(Ext.create('MyApp.view.Main'));
},
What version of android api are you guys using??
-
Sencha User
I'm sorry, I can't help you out any further.
I'm using the same versions as you are, Sencha Touch 2.3.0 and Sencha Cmd 4.0.0.203.
PS: make sure to use the correct.apk file.
If your packager.json points to "outputPath":"../build/" make sure you take the right build directory (since the sencha app package build packager.json command creates a different build directory).
-
Sencha User
Thanks for the help... what version of Android are you deploying to... may be the newer version is not comparable with sencha cmd.
-
Sencha User
Code:
"androidAPILevel":"8"
And I tested my app on Android devices running Android 2.3 and 4.1.2. Both working as expected.
Another thing... Your account's join date is Sep 2008 and you're only developing in Sencha since 2013?
-
Sencha User
thanks... I was using extjs for web development.. this is my first shot at mobile apps.. thanks for the help.. I will try those setting. Will update the thread if it works
-
Sencha User
found the solution... the default app generated sample app has a bug in the app.js file.... make sure you add the line
Code:
requires: ['MyApp.view.Main'],
here is the full code of my app.js
Code:
Ext.application({
name: 'Sencha',
requires: ['MyApp.view.Main'],
launch: function() {
Ext.fly('appLoadingIndicator').destroy();
Ext.Viewport.add(Ext.create('MyApp.view.Main'));
}
});
make sure you check your browser console for any warning or errors
-
Thanks for the update. Ext.application should have Main listed in its view config by default. Do you have 2 main views? Possibly the default MyApp.view.Main and the MyCPA.view.Main? Did you edit the existing Main.js?
-
Sencha User
sorry copy and paste error.. both view should be 'MyApp.view.Main', just corrected it