webview

Error net::err_unknown_url_scheme tel:

孤人 提交于 2020-01-05 04:00:11
问题 I buit an webview app with Android Studio and in my website i have a link like tel:0752118 when i press this link from app return eror net::err_unknown_url_scheme This is my MainActivity.java package totalonlinesrl.totalonline; import android.content.Context; import android.graphics.Bitmap; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.net.Uri; import

WebView memory leak

无人久伴 提交于 2020-01-05 02:34:48
问题 Sorry if this is some kind of duplicate question. I googled for about an hour but still have problems with the memory usage of the WebView component. I'm starting an Activity (NewsDetail) from a ListActivity to display a specific news article. The HTML-Code of the article is added into the WebView which is included in the Activity layout. (it also loads 1 or 2 images via newsDetail.loadDataWithBaseURL() ) I'm starting the article Activity via: Intent i = new Intent(getApplicationContext(),

android webview crash 4.3

一曲冷凌霜 提交于 2020-01-04 15:31:36
问题 i got a problem with my payement webview in android since the 4.3 release. I guess is due to the SSL certificate redirection but i can't change it. I tried the url on samsung or sony < 4.2 with success but on two different 4.3 nexus i got this dump. 08-08 17:22:38.619: E/AndroidRuntime(7568): FATAL EXCEPTION: WebViewCoreThread 08-08 17:22:38.619: E/AndroidRuntime(7568): java.lang.StringIndexOutOfBoundsException: length=0; index=-1 08-08 17:22:38.619: E/AndroidRuntime(7568): at java.lang

android webview crash 4.3

岁酱吖の 提交于 2020-01-04 15:30:13
问题 i got a problem with my payement webview in android since the 4.3 release. I guess is due to the SSL certificate redirection but i can't change it. I tried the url on samsung or sony < 4.2 with success but on two different 4.3 nexus i got this dump. 08-08 17:22:38.619: E/AndroidRuntime(7568): FATAL EXCEPTION: WebViewCoreThread 08-08 17:22:38.619: E/AndroidRuntime(7568): java.lang.StringIndexOutOfBoundsException: length=0; index=-1 08-08 17:22:38.619: E/AndroidRuntime(7568): at java.lang

html select tag in webview seems to be problematic

有些话、适合烂在心里 提交于 2020-01-04 13:52:47
问题 i've done an app with a simple webview; when i open from my webview the page "search.php" and i touch the html select to choose from a different type of words.. but...Houston! We gotta problem! :D When i write what i need in the input field it's all right, but when i TOUCH (only touch) the select field to choose what i need (i can choose few type of locals, like: bar, disco, restaurant..etc...) my app crash! Im asking WHY? If i put the same html select in another page (contact.php for example

Change URL at runtime in webview in android

蓝咒 提交于 2020-01-04 10:56:05
问题 I have created a small program that will load particular website in webview. I want to keep watch on URL and if URL contains 'xxx' word then it should navigate to another page. for example if I set www.example.com. and I can now navigate to any page of www.example.com. If my Url contains word like 'xxx' then I want to exit that url and navigate to another url. Is is possible? and how? Thanks. //Here is my code. public class MainActivity extends Activity { private WebView Browser; @Override

Change URL at runtime in webview in android

和自甴很熟 提交于 2020-01-04 10:54:26
问题 I have created a small program that will load particular website in webview. I want to keep watch on URL and if URL contains 'xxx' word then it should navigate to another page. for example if I set www.example.com. and I can now navigate to any page of www.example.com. If my Url contains word like 'xxx' then I want to exit that url and navigate to another url. Is is possible? and how? Thanks. //Here is my code. public class MainActivity extends Activity { private WebView Browser; @Override

Back button kicks me out of the app on WebView

江枫思渺然 提交于 2020-01-04 09:25:10
问题 I'm developing a Javascript based web app and thought that I could use Android's WebView ability to make it like an actual app, so I jumped right into Android Studio and made a simple WebView app without any Java knowledge, but the problem is, between page transitions whenever I want to return back and hit the back button, the app closes itself. I found some solutions but I have no idea how to implement them correctly, so can you help me please? Here are my WebView's FullscreenActivity.java

Copy to clip board from WebView

懵懂的女人 提交于 2020-01-04 06:30:30
问题 In an UWP App with a WebView control the user can: Select some text from the loaded html Right-click Choose "Copy" However, choosing "Copy" does not copy the text? What is missing? Some code to handle the "copy event", or...? 回答1: This is a known issue we have logged, I'm not sure the specific build version, but the fix should be available in future release. 来源: https://stackoverflow.com/questions/36479593/copy-to-clip-board-from-webview

Android WebView : disable geo: for addresses

巧了我就是萌 提交于 2020-01-04 06:15:52
问题 In my Android application, I am using a WebView to render a list of locations. For some reason, when I click on a list item, it interprets it as a "geo:" address and opens the default browser to show the location. How can I configure the WebView to not interprete the location's addresses. I don't want the "geo:" handling to swallow the "normal" list item touch event. If I tap carefully just on the location name then the "normal" list item touch event is fired. The WevView must interprete