webview

Android webview tel:0000 could not be loaded because net:ERR

五迷三道 提交于 2021-01-28 02:21:36
问题 I am building an android application. I am showing external webpage in webview. I have followed these steps: Load external website in webview. For example example.com, it loads fine in webview There is an option in example.com site to launch Dialer app on button click. Here is the code. <div class="center"> <input type="image" src="btn.png" onclick="location.href='tel:0000';"/> </div> When I go to example.com from mobile browser and click on button, it can launch Dialer app with phone number

Keep current page rendered until the next page is loaded

核能气质少年 提交于 2021-01-28 01:51:58
问题 I have a simple app that is based on WebView.loadUrl("http://www.example.com"). When a user clicks on a URL, the default behavior is to immediately show a blank page, wait until the page is loaded, and then show this page. I managed to show a splash screen in lieu of the blank page. However, is it possible to keep the current page rendered instead, and render the next page only when it is fully loaded? 回答1: This is, I feel, a hacky solution. I offer it as a temporary fix until someone posts

How to get a video stream encoded in H.264 to play in a “WebView”?

青春壹個敷衍的年華 提交于 2021-01-27 19:06:04
问题 I have a remotely hosted webpage with an html5 video player that streams H.264-encoded video. I need to embed this page (not open externally in a browser) in my Android Activity. The latest Android System Webview (ver 63.0) doesn't support H.264 encoding nor does Crosswalk's Webview (matching my hardware architecture). What are my options? 回答1: Updated answer After some digging, it seems that the webview in Android does indeed have issues supporting h.264. This is because it is based on

Unable to Full Screen Youtube Video Inside Custom Webview

一世执手 提交于 2021-01-27 15:03:44
问题 Update I have updated my question to hide confidential code. If still there is some confusion pls msg me in comments. Question I have written an custom Webview for playing youtube video embedded in my website to go full Screen. But its still not Working.. . kindly Help public class MainActivity extends Activity implements OnClickListener { final Context context = this; private WebView webView; private ImageButton btnrefresh; private TextView txtrefresh; private myWebChromeClient

Andorid Webview How to POST data to application/x-www-form-urlencoded

时光毁灭记忆、已成空白 提交于 2021-01-27 14:32:58
问题 I have a Webview In that I am loading web with Query string perimeters like String url = map.get("utype") + map.get("sid") + "/login/login.php?"+"&"+"strid" + "=" + map.get("strid")+"&"+"appmod" + "=" + map.get("appmod")+"&" +"ttype" + "=" + map.get("ttype")+"&" +"payp" + "=" + map.get("payp"); I am loading that Query string in webview webView.loadUrl(url); So Now Insted of using Query string I want to POST Parameters to x-www-form-urlencoded These are my Parameters strid = map.get("strid");

How to disable long click on WebView in android

做~自己de王妃 提交于 2021-01-27 13:44:20
问题 I want to disable the long click on webView so I cant select the text in it, and I use three ways to do that but nothing work: 1) android:longClickable="false" 2) webView.setLongClickable(false); 3) webView.setOnLongClickListener(new OnLongClickListener() { @Override public boolean onLongClick(View v) { return true; } }); So any help please. 回答1: To disable long clicks you need to first enable long click setLongClickable(true); then the setOnLongClickListener , and return nothing: webview

Get Source Code from Webview (VB for Metro)

会有一股神秘感。 提交于 2021-01-27 13:36:39
问题 I'm Making a Windows Phone's app that I can, From a webview called "DebWeb", get the ClassRoom of a specific class. The DebWeb load the site where is all the classRooms, but I want to make that my App search just my class. Before I made an app with almost the same objetive (search the Name of a App from the Source Code), but it was made from VB for PC, now I'm working on VB for Metro (or for App Store) and I can't use the same code. For example, On VB for PC I can use: Dim EHTML = DebWeb

Firebase provider sign-in is not working inside facebook/messenger/instagram in-app browser webview. Error 403: disallowed_useragent

拟墨画扇 提交于 2021-01-27 04:22:13
问题 my team uses firebase auth and we recently run into major problems. We started advertising our website on facebook. Unfortunately, facebook app opens all the links in the in-app webview. Google blocked support for signing in with provider through embedded browser, so none of the users that opens our webapp through facebook/messenger/instagram apps can sign in. Google/Facebook sign-in returns 403: disallowed_usegagent and it is impossible to sign up. Is there any workaround? Has anyone

Firebase provider sign-in is not working inside facebook/messenger/instagram in-app browser webview. Error 403: disallowed_useragent

旧巷老猫 提交于 2021-01-27 04:20:25
问题 my team uses firebase auth and we recently run into major problems. We started advertising our website on facebook. Unfortunately, facebook app opens all the links in the in-app webview. Google blocked support for signing in with provider through embedded browser, so none of the users that opens our webapp through facebook/messenger/instagram apps can sign in. Google/Facebook sign-in returns 403: disallowed_usegagent and it is impossible to sign up. Is there any workaround? Has anyone

Error in Webview with targetSdkVersion 24

我怕爱的太早我们不能终老 提交于 2021-01-27 01:33:06
问题 My app has a WebView which loads a simple HTML page with an iFrame that is used for loading an URL for payment process from a partner company (and I have no access to that url source). When I point the targetSdkVersion to 19 everything works fine and I can make payments through the iFrame. However, when the targetSdkVersion is pointed to 24 I don't have the same luck. In that case, the WebView manages to load the iFrame which is shown some EditText for entering with credit card information