Android Phonegap/cordova Change Property On Webview
In the past, I have changed a normal Webview property on Android. For example: wv.getSettings().setAllowUniversalAccessFromFileURLs(true); where wv is a variable of webview. Now,
Solution 1:
That code is already in our web view so you don't need to set it. Probably the reason it is crashing is that you are not running on an ICS device. That method is only available in ICS or better.
If you really want to add it do:
if(android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
super.appView.getSettings().setAllowUniversalAccessFromFileURLs(true);
}
Post a Comment for "Android Phonegap/cordova Change Property On Webview"