Last active
December 7, 2015 14:46
-
-
Save mika-f/f72bf87980c3e4d593fe to your computer and use it in GitHub Desktop.
Launch other apps from Xamarin.Forms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Open Google Chrome from Xamarin.Forms (Simplicity) | |
var url = "https://google.co.jp"; | |
if(url.StartsWith("https://")) | |
{ | |
url = url.Replace("https://", "googlechromes://"); | |
} | |
else | |
{ | |
url = url.Replace("http://", "googlechrome://"); | |
} | |
Device.OpenUri(new Uri(url)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment