I'm looking for a way to open a URL in a web view in reader mode. Is this possible to do in a simple web view? I've looked and have found other questions about this but they have no answers.
This is simply not possible, the Webview API has been created long before this feature existed and the API does not provide a way of activating arbitrary chrome features which are added to Chrome later.
You could however use Chrome Custom Tabs, and then app users could enable it themselves if Chrome decides to show the "Show simplifed view" popup.
After a lot of research I finally ended using the following library to display my news articles in my android app
You can check this out,
Reader-Mode-Gouse-Mohiddin-Android-Link-Preview-Library
Related
This may seem like a similar question in Stackoverflow but it's not because all the solutions there didn't work.
Facebook announced that they will not be supporting to login to Facebook using native WebView and use their SDK instead. However, my app is a browser app and I can't use their SDK just for this. Yes, I tried using a popup window to log in but it doesn't work for all websites, some websites don't open Facebook login in a popup but instead on the same page.
The weird part about it is that there are many apps on the app store that use WebView and they can log in with no issues while I'm getting this error:
I tried changing the user agent, but it didn't work. I tried using Chrome Custom Tabs but I don't really know to catch the callback when the user has logged in Chrome's tabs then continue in my webview.
I have a question bothering me for these few days, I want to implement browser-like WebView, which has add/close tab and open multiple websites. But after I searched through many forums and documentation still couldn't find any solution for this, wondering can WebView do exactly what phone browser can do?
This is answered by the documentation.
Building web apps in WebView
If you want to deliver a web application (or just a web page) as a part of a client application, you can do it using WebView. The WebView class is an extension of Android's View class that allows you to display web pages as a part of your activity layout. It does not include any features of a fully developed web browser, such as navigation controls or an address bar. All that WebView does, by default, is show a web page.
So the answer to your question is No. The WebView class cannot do exactly what a phone browser can do.
This does not stop you from implementing missing browser features for yourself ... starting with WebView. However, the javadoc for WebView states this:
In most cases, we recommend using a standard web browser, like Chrome, to deliver content to the user. To learn more about web browsers, read the guide on invoking a browser with an intent.
And more ...
I am a web developer, recently i have developed a android app using cordova.
But my application is slow, so i deside to developed the same app using andoid no native code. But the challenge is making same gui. i am new in android.
So my question is that what tools i use for gui design, and is there any framework like bootstrap? thanks in advance.
Maybe this might help: http://www.androidbootstrap.com/
Github link: https://github.com/AndroidBootstrap/android-bootstrap
Android app is also a browser app designed in xml, what kind of app you want to build if its an offline app you have design in xml but if it's online app (ex: playstore) you can use WebView it gives you a browser(with your webpage address hard coded in it) within an app and there you can open your mobile website.
Just like other apps do flipcart, jstdial, amazon etc.
Tools: Android Studio is best but for Start download Eclipse Atd bundle its comparatively light later you can switch to Android Studio.
Unfortunately there is no
and
www.androidbootstrap.com/
You have to do all your design in xml resource, where you can use tags like - style, selector, layer-list, item, shape etc. And these resources have to be controlled dynamically using java (in activity).
In Developers documentation of android (provided by Google) you will find details Style elements
I'm working on a project and I want to implement qr-code scanner in it.
I tried to look for an in-app solution but i didn't find anything relevant so i decided to use a common bar-code scanner to launch an url.
When the user tries to open this link, I want Android to show him a chooser dialog where he can choose to open that link using my application.
I saw a lot of answer to a question like this, but i didn't find anyting about implementing this thing in a no-native android application.
The application is made in html5+javascript+php and all the answers i found spoke abount intent and so on...there is a way to implement the same feature using html5?
Thank you,
Christian
here is the perfect link -
http://devgirl.org/2013/09/17/how-to-write-a-phonegap-3-0-plugin-for-android/
Even I am new to cordova and found many difficulties while designing my 1st plugin.
and be careful cordova 3.0 and later version of cordova has huge difference with the earlier version.
best
I am using Android's built in WebView to show something to the user. I also insert custom javacsript to the page user is is viewing, since it's rather complicated javascript (lets call it userscript, because it acts like you are using for an example Chrome's a userscript on specific page only) Im interested what are the differences in Chromes WebView in different devices?
I guess they are using stock "browser" rendering, but what about javascript support, css3 support etc. on different devices.
Just to be clear.
WebView on Android is actually a version of WebKit customised for the Android platform. It's not a version of Chrome.
Chrome for Android stays up to date as much as possible with desktop chrome.
On iOS I believe the WebView is a single core version of the Safari browser so has some differences.
Chrome for iOS uses this WebView to display web content.
Regarding support best thing to do it look at sites such as http://caniuse.com/
The Android WebView is the same as the "Android Stock Browser" that exists on many Android phones (but is oddly unavailable in Google's Nexus devices). This is true for rendering, JavaScript, etc. When you're looking at a site such as http://caniuse.com, the "Android" column is what you're looking for, not the "Chrome" column.
Unfortunately, testing on Chrome bears almost no relation to using a WebView on Android. Google has stated that they are working on a new WebView component that would be part of Chrome. I asked Google representatives directly when this would be available at PhoneGap Day last month, but all they could say is "it's coming".