Open url in system browser windows phon - windows-phone-8

I am making an html5 app for windows phone 8 and I have a link that is generated by JavaScript and passed into a frame. I would like to put an open in browser button on the application bar. With ios you can do this by adding the _system to the link is there an equivalent in WP? Is there any way to open the browser without using the launcher or is there a way to get the JavaScript variable into the launcher?

You can use Launchers to open and system application
Below is the sample code for the same:
WebBrowserTask webBrowserTask = new WebBrowserTask();
webBrowserTask.Uri = new Uri("http://msdn.microsoft.com", UriKind.Absolute);
webBrowserTask.Show();
MSDN Reference:
How to use the web browser task for Windows Phone

Related

How to open app using the URL android

I am trying to open application on android phone via Browser, Is their anyway to open any application using the ** URL ** in an andoid phone via Chrome, by using HTML.
The format of these URLs is pretty simple and an example of a real URL that you can use is:
intent://#Intent;action=android.in
You have to use the format provided by the app vendor. for example whatsapp:// should be used to open whatsapp and magnet:? to open torrent app. Likewise you have to use in links

captureVideo broken windows phone - phonegap

I am using the official phonegap plugin
Basically I am creating a folder in my isolated Storage and putting in there my
uri file (the result is something like this: /CapturedImagesCache/WP_20150423_013.jpg and I can see the folder and the file with windows Power Tool)
While it works with the photo and I can set my tag this way:
var image = document.getElementById('img1');
console.log("imageData: " + path);
image.src = path;
The same does not work with the video, I am still getting the uri of the file and creating it in my isolated but after setting up my only a message "Invalid Source" is displayed.
Why does it happen?
Is there anyone who used it before on windows phone?
Here is the source code of the plugin github
it is an issue for windows phone 8.1. Seems the local video cannot be accessed within webbrowser control which is used by cordova for windows 8 and windows 8.1 silverlight app. Here the link on MSDN.
I think you're trying to set the src of an image instead of video.
If you try it with a video element, it should work.
js:
var video = document.getElementById('vid');
video.src = mediaFiles[0].fullPath;
video.play();
html
<video id="vid"></video>

No Basic Camera UI for Windows Phone 8.1

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/

Windows phone 8 webbrowser Control stays blank on dropbox

I try to create an WP8 app with a dropbox connection, but I get problems in the authentification process. From the library I downloaded, I get an URL which leads to the loginscreen to authenticate my app. This works fine, but after I entered the logindata, the screen stays blank. This is the behavior in the webbrowser control.
If I open the same URL in Internet Explorer, it works fine, but this is no alternative solution, because my app freezes in the background, so I have to solve it by WebBrowser control.
The only code in my webview class is this:
webview.Source = new Uri(url, UriKind.Absolute);
webview is the WebBowser control and url contains the url to the login page.
Does anyone know a possible solution for this? Do I have to do something to change the page after the user pressed the login button or should this work automatically? Or is it possible to observe Internet Explorer with my app so I can use it?
I've found the answer to this problem.
I had to set the property IsScriptEnabled to true to enable JavaScript.
This value is false on default.
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff462081(v=vs.105).aspx

URL to open iOS app in App Store web page and iTunes app simultaneously

What is the preferred URL to use to open an iOS app in it's App Store web page as well as the iTunes app (when available on the host device)?
I've tried using the itms:// protocol but this opens the app details in the iTunes app only and so is of no use when the URL is navigated to from an Android or Windows phone for example.
I believe you would want to look at the browser to determine which link to use. If the browser is Safari on iOS device, give them the iTunes protocol link, otherwise, http://.
I believe javascript allows you to read such information: Take a look here: http://www.w3schools.com/js/js_browser.asp
I've discovered that the behaviour of a URL opening an iTunes preview web page before automatically opening the iTunes app on the host device (where available) is triggered by affiliate links (which need to track the click before taking the user to the intended destination).