-
8 Jun 2012 10:45 AM #1
Unanswered: Sencha Touch 2 in Android ICS
Unanswered: Sencha Touch 2 in Android ICS
Can someone tell me how to pack sencha touch 2 application in Android 4.x and make it work? I tried the following options (nothing seems to work for me)
i have the following script in my index.html just to see any kind of error
Code:<script>window.onerror = function(error) { alert(error); };</script>- Using eclipse packed Phonegap 1.4.1 with my Sencha Touch 2.0 application (same apk worked like a charm in Android 2.x) - this didn't work on Android 4.x - i get [object Event] in the alert box
- Using Sencha native packaging created apk for my application - this didn't work on Android 4.x - here i used to get error saying (The page at 'file://' says: [object Event])
note: My application works fine if accessed from native browser of Android 4.x (ICS)
Someone please help, any suggestions or hint will be of great help, thanks in advance. Struggling for the past 2 days
Last edited by Jaganlal; 8 Jun 2012 at 12:35 PM. Reason: My application works fine if accessed from native browser of Android 4.x (ICS)
-
10 Jun 2012 9:58 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
- Answers
- 3100
Did you do a build and all your classes required properly?
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.
-
11 Jun 2012 6:37 PM #3
Yes i followed
to do a native build on android.HTML Code:http://docs.sencha.com/touch/2-0/#!/guide/native_android
All my classes are within the build (basically i followed the Android Native Packaging guide from docs.sencha.com). The same apk which i got as output WORKS on Android 2.x BUT NOT on Android 4.x (ICS)
Do i need to do anything special or different to make the package (apk) work on Android 4.x?.
Can anyone share a simple hello world sencha touch 2 application (apk), which can work both on Android 2.x and Android 4.x
-
13 Jun 2012 7:21 AM #4
I have same problem
I have same problem
I have the same problem, I hope soon there is a solution
-
13 Jun 2012 10:04 AM #5
I put the following code in my index.html
and it started working fine.Code:<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/showthread.php?162322-Sencha-Touch-2-PhoneGap-are-not-working-on-Android-4/page3&highlight=Loader // Ext.Loader.setConfig({ disableCaching: false }); Ext.Ajax.setDisableCaching(false); </script>
Just follow this thread to get more details
HTML Code:http://www.sencha.com/forum/showthread.php?162322-Sencha-Touch-2-PhoneGap-are-not-working-on-Android-4
-
30 Jan 2013 12:45 AM #6
Ext.Loader.setConfig({ disableCaching: false }); // Worked for me .... Ext.Ajax... wasn't nessesary


Reply With Quote