title: PlacePicker closes immediatley when launched
body: <p>I've been stuck on this problem for quite some time and read all the earlier posts on stackOverflow, however none of them has solved my my problem. I've done everything mentioned however as soon as i launch the placePicker, it closes immediately.</p>
  
  <p>The posts I've already been referred to are:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/29781978/google-placepicker-closes-immediately-after-launch">First one</a></li>
  <li><a href="https://stackoverflow.com/questions/35449985/place-picker-close-immediately-after-activity-start-google-places-api?noredirect=1&amp;lq=1">Second one</a></li>
  </ul>
  
  <p>Here is the code for the PlacePicker:</p>
  
  <pre><code>public class Questions extends AppCompatActivity {
  
  Spinner help;
  String selectedHelp;
  ImageView mapImage;
  int PLACE_PICKER = 1;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_questions);
  
      mapImage = (ImageView)findViewById(R.id.map);
      Picasso.get().load(R.drawable.map1).into(mapImage);
      mapImage.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
              if (selectedHelp.equals("Travel")){
  
              } else {
  
                  try {
                      PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder();
                      startActivityForResult(builder.build(Questions.this), PLACE_PICKER);
                  } catch (GooglePlayServicesRepairableException e) {
                      e.printStackTrace();
                  } catch (GooglePlayServicesNotAvailableException e) {
                      e.printStackTrace();
                  }
              }
  
          }
      });
  
  }
  
  protected void onActivityResult(int requestCode, int resultCode, Intent data){
      if (requestCode == PLACE_PICKER){
          if (resultCode == RESULT_OK){
              Place place = PlacePicker.getPlace(data, this);
              String toast = String.format("Place: %s", place.getLatLng());
              Toast.makeText(getApplicationContext(), toast, Toast.LENGTH_LONG).show();
              Log.i("LatLang: ", toast);
          }
      }
  }}
  </code></pre>
  
  <p>My manifest :-</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
  
      &lt;meta-data
          android:name="com.google.android.geo.API_KEY"
          android:value="@string/API_KEY" /&gt;
  
      &lt;meta-data
          android:name="com.google.android.gms.version"
          android:value="@integer/google_play_services_version" /&gt;
  
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/app_name"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity android:name=".Questions"&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>I've been stuck on this issue for a very long time. this is for my college project. I've also successfully created and restricted the key as shown on google developers website. Any help would be really appreciated.</p>