since setPluginState method is depreciated after api level 8,i think i get an error saying plugin could not be loaded into kitkat device. I used it to support flash content in my application,now kitkat doesnt support flash i know,but ive installed an hacked flash apk which should work i think,but how do i make webview load the plugin ?
is there any alternative to setPluginState that we can use to load the flash plugin in webview?
im told,dolphin browser has made it done,so there could be an way to do this.
any help would be nice..
This isn't possible in the Chrome based WebView shipped with KitKat I'm afraid.
This method has been eliminated from Android 4.3,So if you need to maintain compatibility you have to compile the project with Android 4.2 and add backward compatibility library through eclipse.
Hope this helps.
Related
What is the default browser used by cordova to load the HTML page?? where is that browser located and how do I update that browser if it is using older version?? Server Sent Events not working in cordova android application.
Does cordova on Android uses chrome or something else?
It uses WebView, which is a part of the Android OS. On older Android versions (before 5.0) it is impossible to update it. On never versions it is updated same way as any other app - using google play.
Starting from Android 6.0 there is a way to choose a WebView service in developer options, but most part of users are unable to do it by default (because it requires turning on developer options).
Starting from Android 7.0 Google Chrome WebView is set as default WebView service, so WebView is updated together with Google Chrome updates.
Unfortunately, some manufacturers (e.g. Meizu) prefer to reinvent a wheel, and embed their own WebView service into their firmware. Sometimes it works not the way it should.
In webview, fonts like (Tamil,Telugu,Hindi) are not working on Android versions above 5.0 but the same URL is working perfectly in chrome browser and below Android version 5.0.
How can I resolve this issue?
You should use Chrome custom tabs to get native behaviour same as google chrome.
This may solve your problem
I have seen at least 20-30 posts on SO regarding this but still haven't got the answer. Can we load an swf file in Android webview or not? I have an HTML page with swf object embedded in it. All HTML content loads except the swf file. I have also installed the Flash Player from Adobe archives on Android device(2.3) but it doesn't work.
In this post, it doesn't work. But the same method is working on this post. Why?
My aim is to run a sencha app on Android device containing the above HTML file, but first I'm unable to load that HTML file with swf content using a native app.
Short answer: when Flash was supported on Android, it required to enable plugins support on the WebView. But it's not supported anymore since Android 4.1 (Jellybean). And Android 4.4 devices use a new WebView implementation which is garanteed to not support any plugin.
If you want this to work, you have to install Flash on an older device with Android 4 or lower.
I have an Android application working with the latest version of Phonegap and Jquery Mobile. I haven't had any problems on Android 4.0.1 or below, but when I installed the app on Android 4.1, I got one issue. There is a section on the app where I have a XMLHttpRequest to load an external HTML. For some reason, on deviceready, the application gives me an alert telling me that the app cannot load the HTML. I don't know what's wrong. Any idea what's the problem? Why is it only happening on Jelly Bean?
#User1608382,
Like Simon said, show us your code.
If you don't want to show us all your code, just strip out as much of your code as possible, try it again to see if you can reproduce the issue, and give us that minimal test case that still has the problem. A number of us have actual 4.1.1 devices we can test on.
Does DeviceReady even give you access to logcat? Since the service is still by invitation-only, I couldn't immediately browse its documentation.
Also, go to the bug tracker at b.android.com and search for 4.1 webview
As you can see from those results, Android 4.1.x introduced a couple of problems for WebView, so hopefully your problem is listed in there already.
Can Android applications can use flash content in them?
From android 2.2 (Froyo) flash is supported.
If you want to use it in an app you could use a WebView
Well you can instantiate a web browser object or similar, and have that open a Flash swf file from a website or local storage, so yeah, in theory you could have flash inside your app...
Don't forget that AIR is supported by Android now too.
http://blogs.adobe.com/air/2010/04/adobe_air_applications_for_and.html