My PhoneGap+Sencha Touch 2.1 Android app will not fully load; whenever I launch it, I get the splash screen, then the index.html flashing dots, and then only the first image in the actual app (app.js) loads with the rest of the screen being white.
This happens on my Samsung Galaxy (Android 2.2), Kyocera Rise (Android 4.2), and Droid emulator (Android 4.2). The app runs through the entire app.js file (based on alerts that I've placed throughout the javascript file), but nothing is actually rendered. The identical app package works just fine on iOS, on the web, AND on Android via PhoneGap Build. It does not work on PhoneGap Android on PC *or* Mac, I've tried both.
I remade the entire app from scratch (via the PhoneGap "Getting Started" instructions), running the app every step along the way. Also tried both PhoneGap 1.8.0 and 2.2.0. Still didn't get it to work. What I did find is something weird: it only happens with Sencha Touch. If I just remove the reference to the Sencha Touch javascript file I don't encounter any errors and can render whatever I want, as long as it's markup in the index.html file. At this point I think there may be something wrong with the Sencha interacting with PhoneGap Android...but I really don't know.
I've Googled/StackOverflow'd this issue (including the stat::init error below) extensively, and can't find a solution that works for my situation. Any help would be met with my undying gratitude, I am completely stumped. I've spent a week on this problem and I have no clue.
EDIT: I've tried redownloading the Sencha Touch SDK. Then used that version of the SDK to build a new app, copy-pasted the app.js and views js files from the old app. Then rebuilt the app and used the new app.js to run the Android app. Still didn't work. EDIT 2: The base Sencha app appears to work. LogCat still gives the stat::init error that I see in the other apps, so that may not be the relevant error. I *guess* there's something wrong in the way that my app is written, which is still confusing since it works in literally every other possible version outside of PhoneGap Android. Still digging, any tips would be extremely appreciated.
This is what LogCat produces during the app launch/failure. The stat::init error at the end seems like it probably is the issue, but it doesn't show up until well after the one image on the app renders.
Thanks for the response, Mitchell, especially right in the midst of the holiday season.
After extensive digging, I discovered that app.css wasn't getting replaced for some reason when I was bringing over the app package. Since I had upgrade from 2.0 to 2.1, the 2.0 app.css file was apparently not working with the 2.1 code. Ended up deleting app.css and then replaced it, all is good.