PROBLEM
If a device is rotated in while in the locked mode, the app disengages from the filesystem.
TEST STEPS
APK can be found here:
https://appcelerator.teamworkpm.net/files/95446
1) Open up the app, login to load tickets.
2) While the app is opened up (anywhere in it is fine, but I was leaving it on the ticket summary), put the device to sleep
3) Now wake up the device and while the device is on the lock screen, rotate it!
EXPECTED RESULTS
The app would resume and rotate without losing data.
ACTUAL RESULTS
Data is removed from the app resulting in parts of the screen (columns of data) to disappear. Please see attached log file at 13:25:25
The bad news: This issue is a little more than just the filesystem disengagement - the app basically goes berserk, filesystem (Ti.App.Properties) reads fail, database reads fail, the user interface gets all foobar'd The good news: I've narrowed this problem down to the switch from Android API level 11 to 13 which was done to handle theme decisions. I will work on making a test app available if I can - this may need to be taken private and allow developer to test on the pro-services app.
By the way, you can ignore the log file uploaded initially to this ticket - it won't tell you anything useful about the problem.
I'll need the test application to reproduce the issue before moving forward.
I haven't had the time to create a sample test app but you can pull this app from the appc repo and reproduce it - install the modules contained in the module-zips folder
To summarize the findings: This appears to be caused when setting the min SDK level to 13 or higher. Android added a new [configChanges](http://developer.android.com/guide/topics/manifest/activity-element.html#config) flag which if not set will cause a restart of the activity. A workaround is to customize the manifest and include "screenSize" and "smallestScreenSize" in the android:configChanges options. We can't generate these yet in the default manifest since we need to support API level 8.
With the latest version of the app with Josh's fix, the rotation issue is fixed,but we could still reproduce the problem with these test steps: STEPS 1. Uninstall the app, re-install it, open it, 2. log in to http://appcelerator.irthsolutions.com/irthnet login: jsmith password: j11111 3. Do the initial sync, after the sync is finished. You will see 4 tickets. 4. U the Home button to get to the desktop. 5. Re-launch the app (go to Apps -> Click Utilisphere) RESULT -when resuming the app the screen is black for ~10seconds -when you see the app screen, no tickets are viewable (as if they disappeared).
Ignore my previous post. The workaround posted by Josh addressed the device rotation issue.
Workaround provided works.
Unable to retrieve apk file from https://appcelerator.teamworkpm.net/files/95446, have no access. Timed out link http://appcelerator.irthsolutions.com/irthnet
Closing ticket as fixed.