Does anyone know if it is possible using HTML5 or Cordova (PhoneGap) to launch a phone number? I'd like to have a button labeled "Call 555-555-5555", and when pressed, it launches the device's phone with that number.
Use the html tel scheme like this:
Call 555-555-5555
For more detail check this Click to Call link
Related
How do I create a phone number in my app that I can click on so that it opens directly in my phone and I can then call it?
You can use the anchor element in this way:
<img src="path/to/phone/icon.jpg" alt="Call 555-555-5555" />
most modern browsers support this.
Duplicate of this: How to trigger a phone call when clicking a link in a web page on mobile phone
you can implant it same as you did in html!
Call!
i have a pwa where i am showing a standard input tag like below. this let user tap on it and get access to device camera. However, i want to open the camera as sooon as you open the webpage. is it possible?
current code:
<input type="file" accept="image/x-png,image/jpeg,image/gif" capture="camera"/>
Like Mathias said access to the camera is gated behind user permission.
Instead of an input tag like you are using you should really use the Media Capture API.
You have to get the user's permission to access the camera first. Once you have that permission you can connect to the camera and capture photos and video.
Note: Apple has disabled access to camera from homescreen web apps. No idea when they will turn this on. You can access the camera from regular Safari on iOS, just not from a homescreen web app even though it is the same engine.
OK. Questions.
I know there is no CameraCaptureUI in Windows phone 8.1, so I have to use MediaCapture class. That's fine but what about UI? Do I have to make and position button in my screen from scratch?(like flash button, front camera button etc)
About Nokia Imaging SDK. does it provide any UI? and can I use that API for taking picture instead of working directly with MediaCapture?. I tried to find out some information about initializing and taking picture using nokia imaging sdk, but I couldn't find.
Can you let me know any useful link for implementing MediaCapture in windows phone 8.1? There are lots of links but only for silverlight 8.0 not 8.1.
You can use FileOpenPicker and if you specify .png and .jpg in the list of file types, the picker will have a camera capture button that will open standard camera capture UI:
FileOpenPicker picker = new FileOpenPicker();
picker.FileTypeFilter.Add(".png");
picker.FileTypeFilter.Add(".jpg");
picker.ContinuationData["Data"] = "Something"; // Will be passed back to the app after the picker finishes
picker.PickSingleFileAndContinue();
If you still want to write your own UI, check this link: http://www.romasz.net/how-to-take-a-photo-in-windows-runtime/
All I have is a simple <input type='file'/> and a Windows Phone 8X HTC. In all other devices (iPod, ipad, android), the button is clickable and a file dialog shows up. But when I click it on windows phone - nothing happens. No file dialog at all.
I remember seeing people sending emails with attachments with their windows phones, so I assume that I am doing something wrong.
How can I upload a file on windows phone?
P.S. when I went to people whom I saw sending attachments with their phone, I found that they used native app, not html...
Windows Phone 8 doesn't support this directly from the browser (apparently, it might if you have an expansion card/memory card in the phone, but I don't have one to test with). I can say that the current developer preview of Windows Phone 8.1 does support it. When you click a file upload button in IE11 on WP8.1, a file selector is shown.
I'm creating a windows app for windows 8.1 tablet. And I was wondering if it was possible to create a button within the app that will enable me to turn on and off the external display connected to the tablet. Similar to a computer when a projector is connected, a user must press a key in order to show or turn off the display on the projector.
Instead of swiping on the right edge and choosing devices and selecting the multiple display. I want to be able to do this within the app with a press of a single button to enable and disable the multiple display function. Is this possible to do?
Here's an sample from Windows 8.1 SDK that might guide you through the implementation:
http://code.msdn.microsoft.com/windowsapps/Multiple-Views-Sample-2582fcf3