Hi
After reading in another thread about Java Decompiler i have been looking at the B4A Core.jar library.
Specifically looking at the WebViewWrapper class to see if it'd be easier to add new WebView methods to and then recompile that class instead of creating a library with the new methods.
I thought i'd add a 'clearCache' method if possible.
Anyway i exported the decompiled class from Java Decompiler and opened it in Eclipse.
Eclipse shows an error The constructor WebViewClient(BA, String) is undefined as it can find no (overloaded) WebViewClient constructor.
The native WebViewClient constructor signature doesn't match the code in the WebViewWrapper class.
What would i have to do to the code in Eclipse to get it to compile?
Thanks.
Martin.
PS If this sort of reverse engineering is not allowed just let me know and i'll not spend any more time on it!
After reading in another thread about Java Decompiler i have been looking at the B4A Core.jar library.
Specifically looking at the WebViewWrapper class to see if it'd be easier to add new WebView methods to and then recompile that class instead of creating a library with the new methods.
I thought i'd add a 'clearCache' method if possible.
Anyway i exported the decompiled class from Java Decompiler and opened it in Eclipse.
Eclipse shows an error The constructor WebViewClient(BA, String) is undefined as it can find no (overloaded) WebViewClient constructor.
B4X:
super.innerInitialize(ba, eventName, true);
((WebView) getObject()).setWebViewClient(new WebViewClient(ba, eventName) {
public void onPageFinished(WebView view, String url) {
this.val$ba.raiseEvent(WebViewWrapper.this.getObject(),
this.val$eventName + "_pagefinished",
new Object[] { url });
}
public boolean shouldOverrideUrlLoading(WebView view, String url) {
Boolean b = (Boolean) this.val$ba.raiseEvent(
WebViewWrapper.this.getObject(), this.val$eventName
+ "_overrideurl", new Object[] { url });
if (b != null)
return b.booleanValue();
return false;
}
});
The native WebViewClient constructor signature doesn't match the code in the WebViewWrapper class.
What would i have to do to the code in Eclipse to get it to compile?
Thanks.
Martin.
PS If this sort of reverse engineering is not allowed just let me know and i'll not spend any more time on it!