On some pages of my website there are options to upload files and content. I have created a webview application out of the website using android studio. In my application, when I click upload contents, nothing happens. It doesn't open any directory to upload.
But, if I use the website from a mobile browser it works fine and when I press 'attach', it opens up the phones's directory/storage which is not the case for my webview app. What is the problem with my android application?
Any suggestion will be greatly appreciated. Thank you.
Please enable javascript using webview.getSettings().setJavaScriptEnabled(true);
Related
can somebody tell how to open a web browser from android app without showing url on the web browser. I don't want people to see url on the web browser which is opened via my app. your suggestions will be appreciated.
If you don't want show link to user - try to use WebView. This is the simpliest solution.
You can't change browsers behaviour because it's other apps =( So you can't hide your link
Here is the idea what I'm trying to do.
My app is around 24MB. I want to break it into modules using google instant app. My idea is I will implement a WebView in which I will load my website which is a dashboard. Now what I want is when a person clicks on any item from the dashboard, the related instant app is loaded. So the user will install only the module which he needed.
Now coming to the problem- How can I open an instant app for my app WebView. I'm able to do it with chrome.
Ok, I have solved it. Just set the webview chrome client and it will able to detect instant app from the link.
webView.setWebChromeClient(new WebChromeClient());
I have a page that is opened inside a webview (Android) and uiwebview(iOS). When it is in the app, it works perfectly, but when I made a change in the code in the hosting site, the page wont't load in Android or iOS either. It's telling me that "error resource is not available". The page does load after refreshing many times. I don't know what is happening. The page is built in Laravel 5.1 and my hosting site is GoDaddy.
Does anyone has the same problem?
Is the app hosted on godaddy using javascript files? In that case you might want to handle that in android app.
For starters you can try to access the website in chrome/ any browser on android device, if its working, try and delete data/cache of app from settings. Or simply just uninstall and install again.
Can someone tell me what steps to follow to open an article in android app?
I do not meant open via browser but in-app.
Update description:
I do not mean open the actual website article, but copy the content (along with images, video links) and show it in the app with your preferred font, background etc
You can open a web page in-app (instead of the browser) by using a WebView (see documentation here). I recommend also reading the API guide topic Building Web Apps in WebView.
you may use webview to load your html file
WebView webView = (WebView)findViewById(R.id.webView1);
webview.loadUrl("file:///android_asset/file.html");
I am having a problem with a WebView app that I am working on.
We have this responsive website that is being displayed through an android WebView.
The website has a Sign in with Facebook option, this works fine in a mobile browser and on the website itself. Whenever I try to use the WebView app to login using Facebook, it results in a white screen.
I am having difficulties finding a solution to get this to work.
Appreciate any advise.
I was able to find a solution based on a previous question on stackoverflow.com
Making facebook login work with an Android Webview
Here is a link to my MainActivity : http://pastebin.com/KdzfhqDJ
I'm fairly certain it's this same issue. Essentially it opens in another window and WebView doesn't support multiple windows out-of-the-box.
Luckily for you, unlike that question which was iOS-specific, if I recall correctly, it's possible to extend WebView to support multiple windows. You'll need to extend WebChromeClient, implement onCreateWindow and use it in your WebView.