android-websettings

Html5 cache problems with android webview

感情迁移 提交于 2020-01-06 05:43:24
问题 Hello I tried to cache my web application with my android device. I tried everything but nothing will work. The Cache will not refresh only on android devices and not on other devices! Below you see all the settings I've set to cache the web application. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); web = (WebView) findViewById(R.id.webview); web.setWebViewClient(new myWebClient()); web.getSettings()

Disabling email,number detection in android WebView

柔情痞子 提交于 2020-01-01 19:58:11
问题 I'm developing an app with phonegap+sencha touch2+android. I've one panel showing various content that contains emails, some numbers in textual form. As it's a WebView when I tap on number, andorids default MailCompose Activity starts, when I tap on number Dialer Activity starts. How can I disable this from happening. Is there some config I'm missing from android side before loading url or web settings for WebView. Or something from Phonegap because when I saw log cat it shows following line

Android WebView One Column doesn't work with YouTube videos

牧云@^-^@ 提交于 2019-12-24 09:32:46
问题 I am loading RSS data from URL,and that RSS data can contain link to YouTube video. Here is an example how link to youtube vide looks like: div class="video-shortcode"><iframe title="YouTube video player" width="600" height="350" src="http://www.youtube.com/embed/HXrcUyCVA6c" frameborder="0" allowfullscreen></iframe></div> When I use this code, I get preview of YouTube video and I can play it, but images are to large as shown on the image below. I used this code for WebView: WebView desc;

How do I refresh the contents of a webview everytime the app is launched?

一世执手 提交于 2019-12-14 03:17:07
问题 I am trying to refresh the contents of my webview everytime someone launches my app.Say someone goes to a different page within the app or goes to background and then relaunches the app, i want the contents of my webview to refresh/reload based on the latest changes I have done on my server. Here's the code I have so far: public class MainActivity extends Activity { WebView webview; ProgressBar progress; public final static int MENU_FULLSCREEN_ON = 3; public final static int MENU_FULLSCREEN

Web view Error using HTML content in Android

夙愿已清 提交于 2019-12-13 04:24:55
问题 Errors I am getting when passing Html(textstring) content value to webview.loaddata(textstring , "text/html", "utf-8"); Works fine in gingerbread,jellybean etc....but facing problem in Ice cream sandwich....Please help me to solve this 02-08 13:52:56.899: W/webcore(1694): java.lang.Throwable: EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up. 02-08 13:52:56.899: W/webcore(1694): at android.webkit.WebViewCore$EventHub.removeMessages(WebViewCore.java:1671

Android HTML button onclick event

↘锁芯ラ 提交于 2019-12-08 06:19:05
问题 I have images displaying in Local HTML pages and have one button for click event. When click this button i need to call another activity. It's working. But the issue is after going another then come back to HTML pages the images are not displaying and app is not working. <script language="javascript"> function validClick() { valid.performClick(); document.getElementById("ok").value = "start"; } function refuseClick(){ refuse.performClick(); document.getElementById("no").value = "Je refuse"; }

Log <GATE-M>DEV_ACTION_COMPLETED</GATE-M> seems to delay execution on Android

半腔热情 提交于 2019-12-07 03:29:14
问题 I've recently noticed that my app has the occasional LAG. and by LAG I mean it can take up to 40 seconds, depends if I use Wifi or mobile data... I load a page url, and then load js for execution: webView = (WebView) view.findViewById(R.id.WebView); webView.setWebViewClient(new WebViewClient() { @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { logDebug("Loading URL: " + url); super.onPageStarted(view, url, favicon); } @Override public boolean

How to show Certain Part of WebPage inside Webview With Fit Screen to All Devices

独自空忆成欢 提交于 2019-12-05 17:50:27
问题 I Want to Show WebPage Inside WebView. Up to this it is fine. But I have WebPage (As Given Below) and I want Certain Part of it. I mean just Top Left Corner should be visible in fit to screen mode in all the devices. I'm resolving this Problem since last two three days. What I want : I want to Show Top Left Corner of webpage to show inside Webview by Whatever the Stratergy May be with zoom or any other Option but it Should be fit to screen for all the device. One More thing I can't change the

Log <GATE-M>DEV_ACTION_COMPLETED</GATE-M> seems to delay execution on Android

假装没事ソ 提交于 2019-12-05 07:23:30
I've recently noticed that my app has the occasional LAG. and by LAG I mean it can take up to 40 seconds, depends if I use Wifi or mobile data... I load a page url, and then load js for execution: webView = (WebView) view.findViewById(R.id.WebView); webView.setWebViewClient(new WebViewClient() { @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { logDebug("Loading URL: " + url); super.onPageStarted(view, url, favicon); } @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { return WrappingClass.this.shouldOverrideUrlLoading(view, url); }

How can i load image url to fit my webview in android?

倖福魔咒の 提交于 2019-12-05 03:16:34
问题 I am developing an android application.Here i am displaying a url image in webview. But the image is not fit to my webview. some one is suggested to use viewport concept. But i am not able to use that perfectly. I attached my issue in drawing form with explanation. I used mWebView.getSettings().setUseWideViewPort (true); but not get the good result. I need to show the fitted image in all resolution devices including 7inch, 10 inch tablets. So please look at the attached image and suggest me