That's true also! Android 3 is a nightmare for HTML5.
I'd still keep to the method I put above though if you can.
Thanks for the advice Shepsii
To reply to your questions...
For packaging to iPad I've been using sencha build app native (with appropriate settings). This works fine and I've had no problems with the iPad version.
For packaging to Android I've been running sencha package build packager-android.json
I guess as you say Android doesn't support the Loader so I'll have to look at the process you outlined using Phonegap. I'll look into it as/when I have time (the iPad was the priority for the project, I'm now just doing this for fun cos it'd be neat to see it running on both platforms!)
Ext.Loader should be fine on Android (non v3) and iPad - but it should be irrelevant apart from the micro loader when you get to production.
There are plenty other issues with Android v3 apart from Ext.Loader too!!
Phonegap won't help with this problem, but it should help with keeping data persistent in the app from load to load. Have you not experienced any problems with this on the iPad? Make sure the iPad is on at least iOS 5.1 as I believe this is when these horrible bugs with data persistence first came in.
The iPad in question isn't mine and I don't have it to hand to check the iOS version but I didn't have any trouble with it - I wanted to ensure the data was persisted correctly after shutdown and load of the app so I did a full iPad restart after a sync and the data was still there. Will keep an eye out for this though, definitely worth bearing in mind.
Thanks again for all your help and insight!
shepsii have you had success building your apps with phonegap? I mean I can get mine to build fine with phonegap, but if I include the actual cordova.js file, it just doesn't work. I'm sure I'm doing something wrong, but so far have had no luck figuring out what I need to do to include the js file because everytime I do it just loads a white screen when you access the app.
23 May 2012, 10:24 AM
I haven't tried yet.
My advice would be to either wait til I sort it in a couple weeks (haha!) or first try to package a non-sqlite st2 app, then the basic sqlite demo, then your app. I have read elsewhere that the correct phonegap version to use is 1.6.1, apparently 1.7 does not play nice with st2. Is this perhaps what's going on with your build?
23 May 2012, 10:47 AM
23 May 2012, 11:31 AM
Ok, but without the access to stuff like camera, contacts etc it works fine? Would you mind sharing a copy of the package with the sqlitedemo? Or is it really so easy I need to stop worrying about it?!
23 May 2012, 11:39 AM
Yeah, I didn't need access to any of those things and it works fine. I haven't tried packaging up the sqlitedemo and running it through phonegap yet. Really I just did a simple "package" build on my app and then uploaded that to the build.phonegap.com site. I don't think you will need to worry about it that much. The one change I did make was to this line in the Connection file:
me.dbConn = openDatabase(me.dbName, me.dbVersion, me.dbDescription, me.dbSize);
me.dbConn = window.openDatabase(me.dbName, me.dbVersion, me.dbDescription, me.dbSize);
Not sure if that was needed or not, just read it in the phonegap docs so went with it and it made it work. Now I've only tested my app on iOS. For all I know it doesn't work with Android or Windows Phone.
23 May 2012, 11:50 AM
Awesome. I very much suspect it will work with Android; I deployed a jqmobile app with a sqlite db using phonegap last year.