I'm developing an Android App with Delphi Xe7. App has a TWebBrowser which loads a normal internet web page like www.lfp.com. The problem I have is that the web page displayed doesn't adjust itself to the TWebBrowser, you have to scroll the page. I would like to show the entire web page, and after that zoom where I like.
Any suggestions?
Related
I have a WebView within my android application that displays a webapp which occasionally will crash if something goes wrong (Like an "Aw snap" Google Chrome crash). I want to detect if this page has crashed, and reload it if it has.
Is there any way to detect if the page within an Android WebView crashes and then reload said page?
I am working on a hybrid application.
My webpages are responsive when i check them in browser inspect window on iphone screen.
But when when i used them in ios, it does not remain responsive anymore.
Any idea about problem and solution?
The same issue is resolved in android by first zooming out the page and the zoom in according to screen size. But it is not working here.
With iPhone you can display different content for the same URL depending on whether the page is visited in normal Safari or via a home screen icon for that webpage. If the page is visited in Safari then you typically display the instructions for downloading the app. And if the page is visited via the home screen icon then you display the app.
I currently have all this setup for a client. When the URL is visited by a non-iOS device, then the app is always shown(i.e. instructions are never shown like with iOS if visited in Safari).
My question is, on Android is there any way I can detect if the page is launching via a home screen icon or not so that I can display instructions or the app like on iPhone? If not, what's the best alternative?
I want to replicate the functionality that shows on map.google.com or m.grooveshark.com for example that when you access the web app on the default browser it asks you as a user if you want to set this webapp on your "desktop". ¿How do I do that on both platform?.
I'd suggest you try the Mobile Bookmark Bubble javascript library.
The Mobile Bookmark Bubble is a JavaScript library that adds a promo bubble to the bottom of your mobile web application, inviting users to bookmark the app to their device's home screen.
There are two new versions of implementation, one supports Mobile Safari only, while the other supports Mobile Safari, Android, Blackberry touch smartphones and Playbook.
I am developing cross-platform mobile application using Sencha-Touch then deploying into web server, when I load the page into webview in Android, getting white space line right hand side of the screen, the same code run in browser in Emulator, it is working fine.
It is the vertical scrollbar of the webview. In a Sencha Touch application you should disable WebView's vertical scrollbar:
webView.setVerticalScrollBarEnabled(false);