{"id":33009,"date":"2017-09-11T14:02:02","date_gmt":"2017-09-11T21:02:02","guid":{"rendered":"https:\/\/blog.xamarin.com\/?p=33009"},"modified":"2017-09-11T14:02:02","modified_gmt":"2017-09-11T21:02:02","slug":"xamarin-android-8-0-gets-even-sweeter-with-oreo","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/xamarin\/xamarin-android-8-0-gets-even-sweeter-with-oreo\/","title":{"rendered":"Xamarin.Android 8.0 Gets Even Sweeter with Oreo"},"content":{"rendered":"<p>\t\t\t\tAndroid 8.0 Oreo is by far the sweetest version of Android to date, with great new features including notification channels, notification badges, custom fonts in XML, downloadable fonts, instant apps, background limits, autofill, and picture-in-picture (PIP). We&#8217;re excited to announce Xamarin.Android support for Android Oreo in our latest release of Xamarin.Android for both <strong>Visual Studio and Visual Studio for Mac.<\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-33159\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/Oreo.jpg\" alt=\"\" width=\"600\" \/><\/p>\n<h2>Installing Xamarin.Android for Android 8.0<\/h2>\n<p>You can get Android Oreo support inside Xamarin.Android 7.5.0.15\u00a0and above, which is available today in the Visual Studio Preview channel and Visual Studio for Mac Beta channel.<\/p>\n<h3>Visual Studio<\/h3>\n<ul>\n<li>Open the\u00a0<strong>Visual Studio Installer<\/strong> and download the latest\u00a0<em><a href=\"https:\/\/developer.xamarin.com\/recipes\/cross-platform\/ide\/change_updates_channel\/#visualstudio2017\">Preview<\/a>\u00a0(15.4 Preview 2).<\/em><\/li>\n<\/ul>\n<h3>Visual Studio for Mac<\/h3>\n<ul>\n<li>Switch the <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/mac\/update\">Visual Studio for Mac Update Channel<\/a>\u00a0to the\u00a0<strong>Beta<\/strong> channel.<\/li>\n<li>Ensure Xamarin.Android 7.5.0.15 is available for download and install the updates.<\/li>\n<\/ul>\n<h3>Both Visual Studio and Visual Studio for Mac<\/h3>\n<p>Android 8.0 development requires JDK 1.8 for compilation of applications; JDK 1.8 is available from <a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/jdk8-downloads-2133151.html\">Oracle<\/a>. See the <a href=\"https:\/\/developer.xamarin.com\/guides\/android\/platform_features\/introduction-to-oreo\/#Requirements\">requirements documentation<\/a> for more information.<\/p>\n<h2>Install the Android Oreo SDK<\/h2>\n<p>Start the Android SDK Manager:<\/p>\n<ul>\n<li>Visual Studio, use Tools &gt; Android &gt; Android SDK Manager<\/li>\n<li>Visual Studio for Mac, use Tools &gt; Open Android SDK Manager<\/li>\n<\/ul>\n<p>Install Android 8.0(API 26) SDKs and Device Images:<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-33241 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/OreoAPIs1.png\" alt=\"\" width=\"877\" height=\"481\" \/>Install the latest Android SDK tools, which are listed under Tools and include Android SDK Tools revision 26.0.2 or later, SDK Platform-tools 26 or later, and SDK Build-tools 26.0.0 or later:<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-33242 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/OreoTools1.png\" alt=\"\" width=\"877\" height=\"483\" \/><\/p>\n<p>For more information about using the Android SDK Manager to install the Android SDK, see <a href=\"https:\/\/developer.xamarin.com\/guides\/android\/application_fundamentals\/using-the-sdk-manager\/\">Using the SDK Manager<\/a>.<\/p>\n<p>After restarting Visual Studio, you&#8217;ll be able to set your <code>&lt;TargetFrameworkVersion<\/code>&gt; to Android 8.0 (Oreo) in your project to take advantage of the new APIs:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-33018\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/TargetFramework.png\" alt=\"\" width=\"697\" height=\"86\" \/><\/p>\n<p>If you do not see the new Android SDK Manager in Visual Studio 2017, you can install it manually from the <a href=\"https:\/\/marketplace.visualstudio.com\/\">Visual Studio Marketplace<\/a>.<\/p>\n<p>Want to know what features to start implementing first in your app? We have a full <a href=\"https:\/\/developer.xamarin.com\/guides\/android\/platform_features\/introduction-to-oreo\/\">Introduction to Android Oreo<\/a> guide that outlines the latest features, and we&#8217;ll continue to add more content over time. Here are a few of the stand out new features in action:<\/p>\n<h2>Autofill Framework<\/h2>\n<p>The new <em>Autofill<\/em> framework in Android Oreo makes it easier for users to handle repetitive tasks such as login, account creation, and credit card transactions, allowing users to spend less time re-typing information (which can also lead to input errors).<\/p>\n<p><img decoding=\"async\" class=\"wp-image-33011 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/44\/2019\/03\/Autofill.gif\" alt=\"\" width=\"300\" \/><\/p>\n<h2>Picture-in-Picture<\/h2>\n<p>Android Oreo makes it possible for an Activity to launch in picture-in-picture (PIP) mode, overlaying the screen of another Activity. Currently, this feature is intended to be used for video playback.<\/p>\n<h2>Notification Badges<\/h2>\n<p>Android Oreo\u00a0now shows notifications the user has not yet acted upon associated with one or more notification channels in an application. Users can long press on an application icon to see notifications associated with it.<\/p>\n<h2>Learn More<\/h2>\n<p>For more detailed information on how to get started with Android Oreo, please see our <a href=\"https:\/\/developer.xamarin.com\/guides\/android\/platform_features\/introduction-to-oreo\/\">documentation<\/a>.<\/p>\n<p>We encourage your feedback on any issues to be\u00a0<a href=\"https:\/\/bugzilla.xamarin.com\/enter_bug.cgi?product=Android&amp;version=7.5%20(15.4)\">filed as a bug<\/a>. If you have any questions regarding Android Oreo APIs, please post them on the <a href=\"https:\/\/forums.xamarin.com\/post\/question\/android\">Xamarin Forums<\/a> or <a href=\"https:\/\/stackoverflow.com\/questions\/ask?tags=xamarin+xamarin.android+android\">Stack Overflow<\/a>.<\/p>\n<p><a href=\"https:\/\/forums.xamarin.com\/103033\"><em>Discuss this post in the Xamarin Forums<\/em><\/a>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Android 8.0 Oreo is by far the sweetest version of Android to date, with great new features including notification channels, notification badges, custom fonts in XML, downloadable fonts, instant apps, background limits, autofill, and picture-in-picture (PIP). We&#8217;re excited to announce Xamarin.Android support for Android Oreo in our latest release of Xamarin.Android for both Visual Studio [&hellip;]<\/p>\n","protected":false},"author":551,"featured_media":39167,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[5,4],"class_list":["post-33009","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developers","tag-android","tag-xamarin-platform"],"acf":[],"blog_post_summary":"<p>Android 8.0 Oreo is by far the sweetest version of Android to date, with great new features including notification channels, notification badges, custom fonts in XML, downloadable fonts, instant apps, background limits, autofill, and picture-in-picture (PIP). We&#8217;re excited to announce Xamarin.Android support for Android Oreo in our latest release of Xamarin.Android for both Visual Studio [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/33009","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\/551"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/comments?post=33009"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/33009\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media\/39167"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media?parent=33009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/categories?post=33009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/tags?post=33009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}