{"id":37789,"date":"2018-08-21T16:19:21","date_gmt":"2018-08-21T20:19:21","guid":{"rendered":"https:\/\/blog.xamarin.com\/?p=37789"},"modified":"2019-03-25T14:13:57","modified_gmt":"2019-03-25T22:13:57","slug":"android-pie-preview-getting-started","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/xamarin\/android-pie-preview-getting-started\/","title":{"rendered":"Getting Started with Android Pie"},"content":{"rendered":"<p>\t\t\t\tGoogle recently released Android Pie for developers to enhance their apps and build new experiences with. Previously, Microsoft released an <a href=\"https:\/\/blog.xamarin.com\/xamarin-android-9-0-p-preview\/\">Android 9.0 Preview<\/a> for Xamarin.Android and as of today, you can download the stable support for Android Pie inside <em><strong>Xamarin.Android 9.0<\/strong><\/em> with <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/releasenotes\/vs2017-relnotes\">Visual Studio 2017 15.8<\/a> and <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/releasenotes\/vs2017-mac-relnotes\">Visual Studio for Mac 7.6<\/a>.<\/p>\n<h2>New Features of Android Pie<\/h2>\n<p>There are a ton of new updates since the Preview. Take advantage of adding the following features to your apps now!<\/p>\n<h3>Display Cutout Support<\/h3>\n<p>Many of the newest Android devices with edge-to-edge screens have a Display Cutout (or &#8220;notch&#8221;) at the top of the display for camera and speaker.\n<img decoding=\"async\" class=\"wp-image-37790 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/02-example-cutout-sml.png\" alt=\"\" width=\"700\" height=\"381\" \/>\nThe Android Pie update allows you to customize the <strong>Display Cutout<\/strong> behavior for how your app will display all of it&#8217;s contents.\n<img decoding=\"async\" class=\"aligncenter wp-image-37791\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/03-cutout-modes-sml.png\" alt=\"\" width=\"700\" height=\"285\" \/><\/p>\n<h3>Notifications Enhancements<\/h3>\n<p>This new update also introduces the following enhancements to improve the messaging experience:<\/p>\n<ul>\n<li>Notification Channels (introduced in <a href=\"https:\/\/docs.microsoft.com\/en-us\/xamarin\/android\/platform\/oreo\">Android Oreo<\/a>) now support the blocking of channel groups.<\/li>\n<li>The Notification System has three new Do-Not-Disturb categories. Prioritizing alarms, system sounds, and media sources.<\/li>\n<li>In addition, there are seven new Do-Not-Disturb modes that can be used to suppress visual interruptions. Modes such as badges, notification lights, status bar appearances, and launching of full-screen activities.<\/li>\n<li>A new <a href=\"https:\/\/developer.android.com\/reference\/android\/app\/Person.html\">Person<\/a> class has been added to represent the sender of a message. Use of this class helps to optimize the rendering of each notification by identifying people involved in a conversation. This includes their avatars and URIs.<\/li>\n<li>Notifications can now display images.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-37792\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/04-example-notifications-sml.png\" alt=\"\" width=\"700\" height=\"526\" \/><\/p>\n<h3>Indoor Positioning<\/h3>\n<p>The Android Pie update provides support for IEEE 802.11mc (also known as <em>WiFi Round-Trip-Time<\/em> or <em>WiFi RTT<\/em>), which makes it possible for apps to detect the distance to one or more Wi-Fi access points. Using this information, take advantage of <em>indoor positioning<\/em> with an accuracy of one to two meters. On Android devices that provide hardware support for IEEE 801.11mc, your app can offer navigation features such as location-based control of smart appliances or turn-by-turn instructions through a store:\n<img decoding=\"async\" class=\"aligncenter wp-image-37793\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/05-wifi-rtt-sml.png\" alt=\"\" width=\"700\" height=\"549\" \/><\/p>\n<h2>Learn More<\/h2>\n<p>Check out our <a href=\"https:\/\/github.com\/xamarin\/monodroid-samples\/tree\/master\/android-p\/AndroidPMiniDemo\">Android Pie Sample Project<\/a> that accompanies our <a href=\"https:\/\/docs.microsoft.com\/en-us\/xamarin\/android\/platform\/pie\">Android Pie Documentation<\/a>.<\/p>\n<p>For more information about the Android Pie, be sure to browse through the <a href=\"https:\/\/android-developers.googleblog.com\/2018\/08\/introducing-android-9-pie.html\">official Android blog<\/a>.<\/p>\n<p><a href=\"https:\/\/forums.xamarin.com\/137130\/getting-started-with-android-pie\"><em>Discuss this post in the Xamarin Forums<\/em><\/a>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google recently released Android Pie for developers to enhance their apps and build new experiences with. Previously, Microsoft released an <a href=\"https:\/\/blog.xamarin.com\/xamarin-android-9-0-p-preview\/\">Android 9.0 Preview<\/a> for Xamarin.Android and as of today, you can download the stable support for Android Pie inside <em><strong>Xamarin.Android 9.0<\/strong><\/em> with <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/releasenotes\/vs2017-relnotes\">Visual Studio 2017 15.8<\/a> and <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/releasenotes\/vs2017-mac-relnotes\">Visual Studio for Mac 7.6<\/a>.<\/p>\n","protected":false},"author":555,"featured_media":40966,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[313,2],"tags":[5,409],"class_list":["post-37789","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","category-developers","tag-android","tag-releases"],"acf":[],"blog_post_summary":"<p>Google recently released Android Pie for developers to enhance their apps and build new experiences with. Previously, Microsoft released an <a href=\"https:\/\/blog.xamarin.com\/xamarin-android-9-0-p-preview\/\">Android 9.0 Preview<\/a> for Xamarin.Android and as of today, you can download the stable support for Android Pie inside <em><strong>Xamarin.Android 9.0<\/strong><\/em> with <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/releasenotes\/vs2017-relnotes\">Visual Studio 2017 15.8<\/a> and <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/releasenotes\/vs2017-mac-relnotes\">Visual Studio for Mac 7.6<\/a>.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/37789","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/users\/555"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/comments?post=37789"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/37789\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media\/40966"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media?parent=37789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/categories?post=37789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/tags?post=37789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}