apache/cordova-android — pull request #128 by odbol (2014-10-17 02:02:49+00:00)
Title: Fixed javascript not loading when activity restarted after exiting with Back button

I was having some issues with my app (local javascript SPA):

1. Start app. Everything works normally.
2. Press Back button to exit. Activity exits and is destroyed.
3. Start app again. Now the HTML shows up, but the Javascript never runs, so nothing works.
4. Press Home button, activity goes to background (with non-working Javascript).
5. Start app again. Now Javascript loads and resumes properly. Everything starts working.

This is on KitKat 4.4.4 on a Nexus 5. "KeepRunning" = "false" in the config file.

Pretty simple fix, once I could figure it out. Please let me know if this has other consequences; sorry I can't provide a test case; my app is quite huge.