title: How to get City and Country from Android Place picker?
body: <p>Please help. I try to implement Place picker to get City name and Country. but it still no result.</p>
  
  <p>In NewItemFragment </p>
  
  <pre><code>  mAddLocation.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
              //TODO QIBEE Insert
              PlacePicker.IntentBuilder intentBuilder = new PlacePicker.IntentBuilder();
              try {
                  Intent intent = intentBuilder.build(getActivity());
                  getActivity().startActivityForResult(intent,REQ_CODE);
              } catch (GooglePlayServicesRepairableException | GooglePlayServicesNotAvailableException e) {
                  e.printStackTrace();
              }
  </code></pre>
  
  <p>in App.java</p>
  
  <pre><code>  Geocoder geocoder;
              List&lt;Address&gt; addresses;
              geocoder = new Geocoder(getApplicationContext(), Locale.ENGLISH);
  
              try {
  
                  addresses = geocoder.getFromLocation(latitude, longitude, 1);
  
                  if (addresses.size() &gt; 0) {
  
                      App.getInstance().setLat(latitude);
                      App.getInstance().setLng(longitude);
  
                      sharedPref.edit().putString(getString(R.string.settings_account_lat), Double.toString(this.getLat())).apply();
                      sharedPref.edit().putString(getString(R.string.settings_account_lng), Double.toString(this.getLng())).apply();
  
                      App.getInstance().setArea(addresses.get(0).getAdminArea());
                      App.getInstance().setCity(addresses.get(0).getLocality());
                      App.getInstance().setCountry(addresses.get(0).getCountryName());
  </code></pre>