I develop Android apps now with PhoneGap. Lately when I try to switch between HTML pages, the application closed, and in the LogCat the following error appears:
use this one... options.headers = { "Connection":"close" };
The following Google Plus post fixed my problem:
Basically the problem is related to optical bounds in 9 patches files. In my case I was using newer 9patches copied from the Holo Theme. This new patches are invalid in older versions of android as explained in the link
The following worked for me to get rid of the error in the webview:
webView.freeMemory();
or
webView.clearCache(true);
The second option will slow down your app.