android-webview

Android WebView failed to load (net::ERR_CLEARTEXT_NOT_PERMITTED)

ぃ、小莉子 提交于 2020-03-19 22:58:14
问题 Can someone help me please? I am using WebView in my Android app compileSdkVersion 29 buildToolsVersion "29.0.0" minSdkVersion 16 targetSdkVersion 29 I have the config https in AmdroidManifest and creating a config file but no change I get the cleartext error : (net::ERR_CLEARTEXT_NOT_PERMITTED) @xml/network_security_config <?xml version="1.0" encoding="utf-8"?> <network-security-config> <domain-config cleartextTrafficPermitted="true"> <domain includeSubdomains="true">www.mydomaine.com<

Android WebView failed to load (net::ERR_CLEARTEXT_NOT_PERMITTED)

我的未来我决定 提交于 2020-03-19 22:57:55
问题 Can someone help me please? I am using WebView in my Android app compileSdkVersion 29 buildToolsVersion "29.0.0" minSdkVersion 16 targetSdkVersion 29 I have the config https in AmdroidManifest and creating a config file but no change I get the cleartext error : (net::ERR_CLEARTEXT_NOT_PERMITTED) @xml/network_security_config <?xml version="1.0" encoding="utf-8"?> <network-security-config> <domain-config cleartextTrafficPermitted="true"> <domain includeSubdomains="true">www.mydomaine.com<

Facebook like and comment not working on Android webview

落爺英雄遲暮 提交于 2020-03-16 08:24:51
问题 I have tried webview with Android studio and FB share and other social media share buttons are working fine. But FB direct like and comment button on my website is not working. When I press like button I can see white screen with left top screen number "1". Please kindly help me. MainActivity.Java package com.example.neermaicom; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.WindowManager;

Android webview takes screenshot only from top of the page

帅比萌擦擦* 提交于 2020-02-24 03:59:09
问题 I am doing a very simple task of taking a screenshot from my webView into a Bitmap... I do it like this: webView.setDrawingCacheEnabled(true); Bitmap bitmap = Bitmap.createBitmap(webView.getDrawingCache(false)); webView.setDrawingCacheEnabled(false); Canvas canvas = new Canvas(bitmap); webView.draw(canvas); The problem is that the final bitmap is always showing the top of my web page content! I actually need it to take the screenshot from where I have scrolled the content but this is not

Android Webview shouldOverrideUrlLoading method

感情迁移 提交于 2020-02-14 02:41:52
问题 When is shouldOverrideUrlLoading method called? webView.setWebViewClient(new WebViewClient(){ @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { } }); Is it called during initial loading of url? e.g. webView.loadUrl( "file:///android_asset/html/index.html"); Is it called everytime URL of webview changes? Any reference? I didn't find one. Thanks 回答1: It does however, get called when the WebView to load a different URL from the one the user had requested. Calling

Run Google Apps Script in Android

≡放荡痞女 提交于 2020-02-07 11:20:59
问题 I am trying to run an Apps Script script in Android. Here is my script: https://script.google.com/a/macros/hdsb.ca/s/AKfycbwSoiiutFyMT4Guo9M-It895ZqHzu5U-tP9BtnwfYx8/dev?phonenumber=whateverphonenumber. When I try to access it on Android through Volley, it breaks down, giving me some random HTML code, when I just want the result(plain text). Here is my method: private void checkSheet(){ TelephonyManager tMgr = (TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE); final String

Run Google Apps Script in Android

◇◆丶佛笑我妖孽 提交于 2020-02-07 11:20:07
问题 I am trying to run an Apps Script script in Android. Here is my script: https://script.google.com/a/macros/hdsb.ca/s/AKfycbwSoiiutFyMT4Guo9M-It895ZqHzu5U-tP9BtnwfYx8/dev?phonenumber=whateverphonenumber. When I try to access it on Android through Volley, it breaks down, giving me some random HTML code, when I just want the result(plain text). Here is my method: private void checkSheet(){ TelephonyManager tMgr = (TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE); final String

Is it possible login into website programmatically with android?

六眼飞鱼酱① 提交于 2020-02-07 08:00:09
问题 I am trying to login into https://thingspeak.com/login website programmatically. I have written blow android program but its not help me to login. pls tell me what am i doing wrong. //inside thread function List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(); nameValuePairs.add(new BasicNameValuePair("User ID", "****")); nameValuePairs.add(new BasicNameValuePair("Password", "*****")); nameValuePairs.add(new BasicNameValuePair("Sign In", "Sign In")); httppost.setEntity(new

Is it possible login into website programmatically with android?

我怕爱的太早我们不能终老 提交于 2020-02-07 07:58:47
问题 I am trying to login into https://thingspeak.com/login website programmatically. I have written blow android program but its not help me to login. pls tell me what am i doing wrong. //inside thread function List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(); nameValuePairs.add(new BasicNameValuePair("User ID", "****")); nameValuePairs.add(new BasicNameValuePair("Password", "*****")); nameValuePairs.add(new BasicNameValuePair("Sign In", "Sign In")); httppost.setEntity(new

Error while trying to load a URL in webview - android

*爱你&永不变心* 提交于 2020-02-06 15:07:11
问题 The URL, I'm trying to load in a webview in one of my activities shows blank because of an SSL error. I have tried working with the network security configuration XML folder, but I'm not sure I understand what I'm doing. Any help would be greatly appreciated. While debugging, when I load Google.com as the URL in the webview, the page loads fine. Then, when I try to search for the particular site, it's there, but when I click on it I get an SSL error in Android Studio's run log. public class