webview

Angular 5 and native IOS/Android communication

时光毁灭记忆、已成空白 提交于 2020-01-06 14:51:17
问题 we are building an angular application, which we will embed in an existing IOS and android application as a webview. I want to create a communication between angular application and native application. Eg: On certain events like download, angular UI should send some data to native apps to use default app behavior like that .. From the basic search i found that it can be done by using javascript. I want to know the best approach to do this(Architecture level), ie communication between angular

call Visibility OnPageFinished - Android

霸气de小男生 提交于 2020-01-06 13:09:19
问题 How to call visibility when the page stops loading? I want to make the progressbar invisible, but the code I am using is not letting me override it: public void onPageFinished(WebView view, String url) { findViewById(R.id.progressBar1).setVisibility(View.GONE); } Activity: public class Browser extends Activity { private WebView webView; private EditText urlEditText; private ProgressBar progress; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Android: Add Timestamp to URL for WebView

梦想的初衷 提交于 2020-01-06 08:59:27
问题 For starters, I am not a programmer, my wife is making me learn how to program for Android because she wants me to make her some apps to use around the house. I have a basic app that loads a JPG into a WebView window. I read that in order to help manage caching it's a good idea to add a timestamp to a URL. I am not sure how to add a Timestamp into the URL. This is what I have now: mWebView.loadUrl("http://www.website.com/webviewimage.jpg"+"?123"); I plan to replace the "?123" with the

Android: Add Timestamp to URL for WebView

坚强是说给别人听的谎言 提交于 2020-01-06 08:58:06
问题 For starters, I am not a programmer, my wife is making me learn how to program for Android because she wants me to make her some apps to use around the house. I have a basic app that loads a JPG into a WebView window. I read that in order to help manage caching it's a good idea to add a timestamp to a URL. I am not sure how to add a Timestamp into the URL. This is what I have now: mWebView.loadUrl("http://www.website.com/webviewimage.jpg"+"?123"); I plan to replace the "?123" with the

Show a pdf into a webview from a link inside that Website Xamarin android

痴心易碎 提交于 2020-01-06 06:36:31
问题 In my app I have implemented a webview to show a website link into that webview. Now that website has a button that contains a pdf file link. If I click on that button on website it shows a pdf file on the web. But if I try to open it into the webview in my app, nothing happens. I am very new in Xamarin android. I could not find any suitable way to that. Here is my code to show the website into the webview. I want to relod the pdf when click on link from the website. But the result is same as

Show a pdf into a webview from a link inside that Website Xamarin android

青春壹個敷衍的年華 提交于 2020-01-06 06:36:22
问题 In my app I have implemented a webview to show a website link into that webview. Now that website has a button that contains a pdf file link. If I click on that button on website it shows a pdf file on the web. But if I try to open it into the webview in my app, nothing happens. I am very new in Xamarin android. I could not find any suitable way to that. Here is my code to show the website into the webview. I want to relod the pdf when click on link from the website. But the result is same as

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()

Can't change position of elements in webview

雨燕双飞 提交于 2020-01-06 04:47:06
问题 I developed a simple webview app which is working fine. Now I have to add a back button. I added it as a child of "FrameLayout". I can change the size, but I can't change the position of the button, it just sits at the top left... This seems to be the case for any element, I just tried it with ImageView and I have the same problems with it. I also tried to use "RelativeLayout" instead of "FrameLayout" as adviced in this answer, but it makes no difference Any help is appreciated. 回答1: I

Android WebView disable keyboard predictions

杀马特。学长 韩版系。学妹 提交于 2020-01-06 04:45:09
问题 I've been scouring the web for hours now looking for answer to these two questions, to no avail. How do I disable all keyboard auto-complete suggestions within an app/activity/WebView? Most answers focus on scenarios that include an EditText, but in my scenario, there is just a WebView with input fields. In the scenario described above, how do I keep the keyboard open all the time I am in the activity containing the WebView? Pressing the "Done" button on the keyboard makes the text field lose

Opening an activity with a webview containing a HTML5 video for a second time

空扰寡人 提交于 2020-01-06 04:02:20
问题 I am serving video's in a webview in Android using Appcelerator Titanium. On iOS this works like a charm. But on Android this gives some problems. It goes wrong the second time an activity is opened with a webview that holds a html5 video element. Steps to reproduce: (Also see this youtube video: http://www.youtube.com/watch?v=0MpSpfJNyOk ) The first time opening a video/activity with html5 video it shows the video and I am able to play it. When I close the window/activity and open a new