In my project as per client we need to access and upload picture from photo gallery to site. It is for iOS, Android and blackberry. I know we can access it for android using opera browser but my question is can we access it for all mobile device and from any device browser.
Yes, in fact iOS even has multi-upload functionality built in as well. I'm not sure about blackberry, but I'm almost positive that any mobile device has this feature. The best thing you can do is just more research online and testing on them.
HTML(you don't need javascript to do it)
<input type="file"/>
Related
I have a website with webrtc that works great between desktops.
Now I'm trying comunicate between desktop and mobile, video is ok but the audio has lots of noise in mobile, I'm using the following constraints for desktop and mobile:
var constraints={audio:true,video:{"mandatory":{"minWidth":"320","minHeight":"240","maxWidth":"320","maxHeight":"240","maxFrameRate":"15","minFrameRate":"15"}}};
If I change the mobile audio constraint to:
audio:{echoCancellation:false}
Solves the noise problem, but now the desktop device hears the sound with echo. How can I solve this problem? The tests that I'm dooing are in chrome(desktop) and in mobile side Chrome for Android and in a hybrid app. The mobile device is a ZTE with android 6.0.1
Welcome to the world of webrtc, probably the browser is outdated and isn't supporting the echoCancellation flag (or is still buggy).
Update the browser might resolve the issue (if you can). Otherwise maybe try another mobile device and check if it works there, if that doesn't work I only know of the if(mobile) ... else ... solution until the browser is updated.
In worst case you even have to check for specific versions to disable the flag.
Problem:
We would like to open the mobile devices own share dialog when the user clicks on a button in our website, so that they have their local apps available.
Now: Is it even possible to get to the devices share dialog through the web browser on a phone?
We use only HTML5, CSS3 and Javascript for the websites, so no Android SDK or iPhone equivalent.
Apparently as José said it is not possible to access the devices share dialog directly through a web browser. Further investigations into other possibilities will be done on our side.
I need to find out if it's possible and if so, what is the API for that.
The required scenario:
connect to a wifi network.
from an android app or using javascript from a webpage find out the make and model of devices that are connected to the same router.
I found a way to find the IP addresses, and I saw that Find app can see the manufacturers, but can't tell if it's a mobile device, a tablet, a laptop or a printer.
I thought that a possible way would be to use jmDNS (which I can't get my android project to compile with), and service discovery, but I'm not sure that it will tell me if the device is a tablet or a smartphone.
For Android I can also think of the linux build number to search against a device list compatible with that build. However, I'm not sure about Apple devices.
Is there a way to do that or am I wasting my time?
If there is, will it work in Android or with JS?
Thanks.
In iOS on the web, I would like to detect from Javascript whether the device is connected via 3G or Wifi?
In Android, this information is available via navigator.connection.type. Is this information available on iOS (iPad/iPhone)?
See How do you detect 3G vs. Wifi connection on mobile safari?
You can't. iOS does not support this natively. You have to use a framework like PhoneGap to achieve this.
You can call native IOS code from javascript that looks for connectivity in Reachability API,and return back the value to Javascript..
I have YouTube videos in my site opening in a modal window (ColorBox). When I try it on my iPhone, the window launches but the video doesn't play.
How can I prevent the modal window script from being served to smartphones, so that videos launch normally on those devices?
Thanks!
You could sniff the user agent with some javascript or even server side code, but make sure to give your users a way to switch manually between the two.
Nothing sucks more than getting the phone version on a computer because you're using an unknown browser like konqueror or getting the computer version on a phone because you're using a windows 7 phone.