{"id":8982,"date":"2013-12-13T09:33:45","date_gmt":"2013-12-13T17:33:45","guid":{"rendered":"http:\/\/blog.xamarin.com\/?p=8982"},"modified":"2013-12-13T09:33:45","modified_gmt":"2013-12-13T17:33:45","slug":"improvements-to-the-google-play-services-component","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/xamarin\/improvements-to-the-google-play-services-component\/","title":{"rendered":"Improvements to the Google Play Services Component"},"content":{"rendered":"<p>\t\t\t\tWe made some changes to the Google Play Services component that will make it even easier to utilize Google Play Services in your Xamarin.Android application.<\/p>\n<h2>Automatically Downloads Google Play Services Client Library<\/h2>\n<p dir=\"ltr\">The first improvement is that the component is no longer dependent on the Google Play Services client library installed on your workstation. The Google Play Services component embeds metadata to identify what version of the Google Services client library it is bound to. When you add the component to your application, the correct version of the Google Play Services client library is downloaded and the component automatically binds to that, instead of the version that is installed by the Android SDK Manager.<\/p>\n<h2>Three Different Versions<\/h2>\n<p dir=\"ltr\">Now that the Google Play Services component can manage the version of the Google Play Services client library it needs, the only thing you need to concentrate on is the minimum version of Android your application will support. Just pick one of these three components:<\/p>\n<ul>\n<li>\n<p dir=\"ltr\"><a href=\"http:\/\/components.xamarin.com\/view\/googleplayservices\">Google Play Services<\/a> &#8211; This component is meant for projects that target Android 4.0 (API level 14) or higher.<\/p>\n<\/li>\n<li>\n<p dir=\"ltr\"><a href=\"http:\/\/components.xamarin.com\/view\/googleplayservicesfroyo\">Google Play Services (Froyo)<\/a> &#8211; This component is for projects that target Android 2.2 (API Level 8). In November, 2013 Google stopped supporting Android 2.2 in the newer versions of Google Play Services. You can still use the existing Google Services in your Android 2.2 app, but you won\u2019t get any of the latest bug fixes or features.<\/p>\n<\/li>\n<li>\n<p dir=\"ltr\"><a href=\"http:\/\/components.xamarin.com\/view\/googleplayservicesgingerbread\">Google Play Services (Gingerbread)<\/a> &#8211; This component is for projects that target Android 2.3 (API level 10).<\/p>\n<\/li>\n<\/ul>\n<p><a href=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/Screenshot-2013-12-09-14.58.24.png\"><img decoding=\"async\" alt=\"Screenshot 2013-12-09 14.58.24\" src=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/Screenshot-2013-12-09-14.58.24-1024x851.png\" width=\"717\" height=\"596\" \/><\/a><\/p>\n<h2>Automatically References Dependencies<\/h2>\n<p dir=\"ltr\">The previous versions of the component required you to manage dependencies, specifically the Android Support Package. The latest update takes care of this for you, by including the relevant dependencies:<\/p>\n<ul>\n<li>\n<p dir=\"ltr\">Google Play Services (Froyo) includes references the <a href=\"http:\/\/components.xamarin.com\/view\/xamandroidsupportv4-18\">Xamarin.Android.Support.v4 (revision 18) library<\/a>.<\/p>\n<\/li>\n<li>\n<p dir=\"ltr\">Google Play Services (Gingerbread) includes both the <a href=\"http:\/\/components.xamarin.com\/view\/xamandroidsupportv4-18\">Xamarin.Android.Support.v4 (revision 18) library<\/a> and the <a href=\"https:\/\/components.xamarin.com\/view\/xamandroidsupportv7appcompat\">Android Support Library v7<\/a>.<\/p>\n<\/li>\n<\/ul>\n<p dir=\"ltr\">If you\u2019re already using the component in an existing project and have a reference to Mono.Android.Support.v4 or Mono.Android.Support.v7, you\u2019ll have to remove these old references when you upgrade to the latest version of the component.<\/p>\n<p dir=\"ltr\">If you\u2019re new to the Google Play Services component, why don\u2019t you get the <a href=\"https:\/\/github.com\/xamarin\/monodroid-samples\/tree\/master\/MapsAndLocationDemo_v3\">Maps And Location Demo v3 sample<\/a> from GitHub and try things out for yourself?<\/p>\n<p><a href=\"http:\/\/forums.xamarin.com\/discussion\/11323\/\" title=\"Discuss in Forums\" target=\"_blank\"><em>Discuss this blog post in the Xamarin Forums<\/em><\/a>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We made some changes to the Google Play Services component that will make it even easier to utilize Google Play Services in your Xamarin.Android application. Automatically Downloads Google Play Services Client Library The first improvement is that the component is no longer dependent on the Google Play Services client library installed on your workstation. The [&hellip;]<\/p>\n","protected":false},"author":563,"featured_media":39167,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[5,14,4],"class_list":["post-8982","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developers","tag-android","tag-partners","tag-xamarin-platform"],"acf":[],"blog_post_summary":"<p>We made some changes to the Google Play Services component that will make it even easier to utilize Google Play Services in your Xamarin.Android application. Automatically Downloads Google Play Services Client Library The first improvement is that the component is no longer dependent on the Google Play Services client library installed on your workstation. The [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/8982","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\/563"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/comments?post=8982"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/8982\/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=8982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/categories?post=8982"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/tags?post=8982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}