callback/callback-android — Issue #33: onReceivedError incorrectly sets openExternal to true
Author: dewang
Created: 2011-11-24 11:04:34+00:00
State: open

There is an option to set an "errorUrl" property which will get loaded when there is an error loading a page. The property requires, quite rightly, that the error page is a local page.
However the error handler in DroidGap makes a call to showWebPage as
me.showWebPage(errorUrl, true, true, null);

This sets the "openExternal" parameter as true which causes the URL to be opened in the browser rather than the app. Of course this does not work and you get strange errors from the Android browser.

FIx required: Just set the openExternal as false

me.showWebPage(errorUrl, false, true, null);