how do I disable the functionality on Android browsers where a user can press and hold and image and bring up a "save image" popup dialog.
for ios devices, -webkit-touch-callout:none; works, but this seems to have no effect on android browsers
attach an event handler for the click event which calls event.preventDefault(). At least this did work for me when using ICSĀ“ default web browser, chrome beta and opera mobile.
Related
I need to make an application in App inventor 2 that displays the website in the selected browser when clicked. I was able to do this for google chrome, but it doesn't work on firefox and edge. The firefox application starts up but does not enter the link. The Edge application does not turn on at all.
This is code for chrome browser:
This is edge:
This is Firefox (App starting but not search)
Unless you want your user to use a specific browser, I think a better approach would just be opening the link in the user's default browser. If they don't have a default browser, then Android should show the browser chooser.
I have a website where users can watch videos (I used HTMLVideoElement).
In Samsung Browser, when entering full-screen mode, there is a button that allows to float the video, and watch it while scrolling.
It is also possible to use Samsung Browser's Video Assistant for that as well (video).
I wish to disable this feature, but couldn't find anything related.
Your help will be much appreciated :)
Thanks
SamSung browser has this Video element by default . disablign this mean one need to disable samsung browser by default.
You can do a work on HTML pages by explicitly disabling any external app in accessing you video content , this way the samsung browser would be able to pick you video content into its plugin.
Use Content Locker for HTML web pages which can disable samsung browser from picking up your video content on your webpage.
I have 3 Android devices.
Android 7.1, Chrome v71 latest version
Android 8.0, Chrome v71 latest version
Anrdoid 8.1, Chrome v71 latest version
I tested PWA's "Add to home" feature and some weird behavior in chrome browser
First device always ask "Add to home" when access website even though already installed it.
Second and Third device only ask "Add to home" when PWA not installed.
Also I tested Android Simulator v8.0 was same thing first device.
I have no idea why each browsers show different work.
Based from this documentation, starting in Chrome 68 on Android, Chrome will no longer show the add to home screen banner.
If the site meets the add to home screen criteria, Chrome will show the mini-infobar. Then, if the user clicks on the mini-infobar, or you call prompt() on the beforeinstallprompt event from within a user gesture, Chrome will show a modal add to home screen dialog.
I am creating a mobile webpage using jquery mobile, no luck in creating a button when tapping which will create a home page icon automatically, a one tap process, on both ios and android devices, something like the AddFavorite() function in the desktop world, is it technically possible ?
Using Android 2.3.5 Gingerbread built in browser. Created an offline cached app using html5.
When I turn the network off, the pages seem to cache ok but moving from page to page I get a message warning me there is No Network Connection (with settings / OK buttons). If I press OK you can move to the next page (also cached) but my users are not happy having to press the OK button every time they go from one cached page to the next.
On a an Android 4.0.4 tablet, the internal browser does not generate the message when network is off.
Can anyone confirm that this is standard Gingerbread behavior for a cached HTML5 app or did I do something wrong? Is there any low level setting to suppress that message?
My only other thought is to cram all the pages into a single page and show/hide them rather than navigate from page to page. Or just build a native app.
I'd switch to Chrome but it won't run on Gingerbread.