I am creating a browser app for android and I want know is there any code that helps to enable adding bookmarks in android webview.
This is something you will have to add yourself, a WebView literally just displays html content. It doesn't come with all features like for example Chrome.
To add/save bookmarks you would need to implement a UI for showing the bookmarking button, for entering the URL, for showing a list of previously bookmarked pages etc. Once you have all that you can then get the WebViews current URL by:
webView.getUrl();
and save that to your database.
Then you have the work of displaying a list of saved bookmarks and allowing the users to click them and have the WebView navigate to them.
Here is an example I found (by a simple Google) to help you get started which shows adding a simple bookmarking feature on an WebView: https://www.journaldev.com/15729/android-webview-bookmarks
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 am making an app that is filtering videos through ID when a link is clicked through deep links. It works but the user has to set the app to open as default. How do I make the little window asking if they would always want to open YouTube links with my app within an activity?
I have a content locker from a cpi network and I want to include it in my android application.
the concept of the content locker is when the user complete the offers , go automatically to a specific URL .
what I want to do is, if a specific URL is loading, to go to the next layout
I want to use webview to render a login page. Thr webview is hidden in my app. Once the app is finished there will be some actions performed to login. (Since this is not a normal form, I really need to use WebView). But the big images on this site consume much bandwidth and the login takes longer. How can I disable the download of them and still get no errors in webview?
You can stop loading the images in webview.
webView.getSettings().setLoadsImagesAutomatically(false);
https://github.com/delight-im/Android-AdvancedWebView
Use this Github Library
it may be helped a lot.
I want to make an photo gallery app, so I want something like I upload pics to a webpage and it automatically gets displayed in that app.
I don't want to edit the coding for every single image and yess I don't want "WebView" all I want is a pure native android app, that gets data (images/audios/videos) from a webpage and display it in my native android app activity.
What you need to use is a grid view, you pass an array with the links to download the image and place them in each row.
Here is an [example] (http://www.tutorialspoint.com/android/android_grid_view.htm) of how to use it.
Hope it helps