Added workarounds for suspend/resume due to what looks like a Titanium bug on Android.