title: Using Google Maps with Xamarin Android
body: <p>I am trying to use google maps in my application.I have added google services maps and location services to the components of my application I was following tutorials and looking at the documentation about how it is meant to be implemented and it used to require google play services which has since been separated into multiple smaller components. Anyways when ever i run the application a button appears saying get google play service on my app and when I click it an error appears.
  Thanks for any help. </p>
  
  <p>Unhandled Exception:</p>
  
  <pre><code>Android.Content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://details? id=com.google.android.gms&amp;pcampaignid=gcore_8115000--- flg=0x80000 pkg=com.android.vending }
  </code></pre>
  
  <p>Here is my code:    </p>
  
  <pre><code>//main.xaml
      &lt;fragment
            android:id="@+id/map"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            class="com.google.android.gms.maps.MapFragment" /&gt;
  //Main Activity
         public class MainActivity : Activity, IOnMapReadyCallback
          {
  
           private GoogleMap mMap;
                  protected override void OnCreate(Bundle bundle)
                  {
                          base.OnCreate(bundle);
                          SetContentView(Resource.Layout.Main);
                          SetUpMap();
                  }
              private void SetUpMap()
              {
                  if (mMap == null)
                 {
                          FragmentManager.FindFragmentById&lt;MapFragment&gt;(Resource.Id.map).GetMapAsync(this);
                  }
  
              }
              public void OnMapReady(GoogleMap googleMap)
              {
                  mMap = googleMap;
              }
      }
  </code></pre>
  
  <p>Android Manifest:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="app1.app1" android:versionCode="1" android:versionName="1.0"&gt;
           &lt;uses-sdk android:minSdkVersion="16" /&gt;
           &lt;application android:label="app1" android:icon="@drawable/Icon" android:theme="@style/CustomActionBarTheme"&gt;
          &lt;!-- Put your Google Maps V2 API Key here. --&gt;
          &lt;meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="@string/Google_Maps_Key" /&gt;
          &lt;meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /&gt;
         &lt;/application&gt;
  
         &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
         &lt;!-- Allow the application to access Google web-based services. --&gt;
         &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /&gt;
         &lt;!-- Google Maps for Android v2 will cache map tiles on external storage --&gt;
         &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
         &lt;!-- Google Maps for Android v2 needs this permission so that it may check the connection state as it must download data --&gt;
         &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
         &lt;!-- Permission to receive remote notifications from Google Play Services --&gt;
        &lt;/manifest&gt;
  </code></pre>