-
19 Jun 2012 5:41 AM #1
Unanswered: Sencha touch-2 + phonegap App works on Android 2.3.4, but not on ICS
Unanswered: Sencha touch-2 + phonegap App works on Android 2.3.4, but not on ICS
Here is my Logcat error code:
06-19 18:36:04.245: D/dalvikvm(841): GC_FOR_ALLOC freed 41K, 3% free 10562K/10823K, paused 56ms
06-19 18:36:12.245: D/chromium(841): Unknown chromium error: -6
06-19 18:36:12.245: D/chromium(841): Unknown chromium error: -6
06-19 18:36:12.245: D/chromium(841): Unknown chromium error: -6
06-19 18:36:12.306: D/PhoneGapLog(841): Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/event/Dispatcher.js', please verify that the file exists
06-19 18:36:12.306: D/PhoneGapLog(841): file:///android_asset/www/sdk/sencha-touch-debug.js: Line 8017 : Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/event/Dispatcher.js', please verify that the file exists
06-19 18:36:12.306: E/Web Console(841): Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/event/Dispatcher.js', please verify that the file exists at file:///android_asset/www/sdk/sencha-touch-debug.js:8017
06-19 18:36:12.316: D/PhoneGapLog(841): Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/MessageBox.js', please verify that the file exists
06-19 18:36:12.316: D/PhoneGapLog(841): file:///android_asset/www/sdk/sencha-touch-debug.js: Line 8017 : Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/MessageBox.js', please verify that the file exists
06-19 18:36:12.316: E/Web Console(841): Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/MessageBox.js', please verify that the file exists at file:///android_asset/www/sdk/sencha-touch-debug.js:8017
06-19 18:36:12.326: D/PhoneGapLog(841): Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/event/publisher/Dom.js', please verify that the file exists
06-19 18:36:12.326: D/PhoneGapLog(841): file:///android_asset/www/sdk/sencha-touch-debug.js: Line 8017 : Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/event/publisher/Dom.js', please verify that the file exists
06-19 18:36:12.326: E/Web Console(841): Uncaught Error: [Ext.Loader] Failed loading 'sdk/src/event/publisher/Dom.js', please verify that the file exists at file:///android_asset/www/sdk/sencha-touch-debug.js:8017
-
19 Jun 2012 5:43 AM #2
Edit:
Edit:
All the files are present at the prescribed location.
As I mentioned, it worked perfectly on GingerBread
-
19 Jun 2012 3:59 PM #3
I also have the same issue. Works great in Emulator and also BlueStacks, but not a phone or tablet with ICS. Same type of error. Cannot locate files under APP folder. Did confirm Build.
FOUND THE SOLUTION !!!
Add this just after your "app.js" <script> line in your HTML document
<script>
// Fix for problem with android 3.x and 4.x which is
// the browser has a problem with urls with ? and this
// bug has not been fixed by google. See:
// http://code.google.com/p/android/issues/detail?id=17535 or
// http://www.sencha.com/forum/showthre...encha-Touch-2- PhoneGap-are-not-working-on-Android-4/page3&highlight=Loader
//
Ext.Loader.setConfig({ disableCaching: false });
Ext.Ajax.setDisableCaching(false);
</script>Last edited by bill@perdasys.com; 19 Jun 2012 at 4:16 PM. Reason: Found a solution
-
19 Jun 2012 8:38 PM #4
My app is not running in simulator also. I also tried this script. It resulted in new error:
06-19 18:42:01.545: E/Web Console(1265): Uncaught TypeError: Cannot call method 'setDisableCaching' of undefined at file:///android_asset/www/index.html:15
-
20 Jun 2012 4:11 AM #5
Are you adding the code in app.html after the line in BOLD below...
<script type="text/javascript" src="app.js"></script>
// code to be added below
<script>
Ext.Loader.setConfig({ disableCaching: false });
Ext.Ajax.setDisableCaching(false);
</script>
-
21 Jun 2012 5:26 AM #6
Thanks,
Eclipse, Samsung Tab, cordova 1.8.1, Android 3.1, ST 2.0.1.1
Managed to get rid of the white screen of death with thoses lines....
<script type="text/javascript" src="app.js"></script>
// code to be added below
<script>
Ext.Loader.setConfig({ disableCaching: false });
Ext.Ajax.setDisableCaching(false);
</script>
-
21 Jun 2012 6:32 AM #7Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,639
- Vote Rating
- 435
- Answers
- 3106
Ext.Loader should not be used in production so you need to remove that from production build. If you are using Sencha Command then you can do this automatically with the //<debug>
http://mitchellsimoens.com/2012/06/s...encha-command/Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
22 Jun 2012 1:37 AM #8


Reply With Quote