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
/** | |
* This function open email compose view and post HTML body | |
**/ | |
// val body = Html.fromHtml(fragment.resources.getString(R.string.email_body)) | |
fun navToEmailCompose(email: String, subject: String, body: String) { | |
val intent = Intent(Intent.ACTION_SENDTO, | |
Uri.parse("mailto:${email}")) | |
intent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject) | |
intent.putExtra(android.content.Intent.EXTRA_TEXT, body) | |
startActivity(Intent.createChooser(intent, "Email")) |
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
<Grid HeightRequest="50" WidthRequest="50"> | |
<Grid.Clip> | |
<EllipseGeometry RadiusX="25" RadiusY="25" Center="25,25"/> | |
</Grid.Clip> | |
</Grid> |
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
<Grid> | |
<Grid.Clip> | |
<PathGeometry Figures="M20 96.5596C20 92.4719 22.0807 88.6655 25.5215 86.4586L146.521 8.85176C154.508 3.72922 165 9.46434 165 18.9527V185C165 191.627 159.627 197 153 197H32C25.3726 197 20 191.627 20 185V96.5596Z"/> | |
</Grid.Clip> | |
</Grid> |
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
try | |
{ | |
var location = await Geolocation.GetLastKnownLocationAsync(); | |
if (location != null) | |
{ | |
Console.WriteLine($"Latitude: {location.Latitude}, Longitude: {location.Longitude}, Altitude: {location.Altitude}"); | |
} | |
} | |
catch (Exception ex) |