title: How to set initial text in spinner instead first item of json response
body: <p>I am using json parsing in my app,i am getting country name from json,the issue is in my json response first country is "Andorra", but by default i want to display "Select Country",following is my json response and code,can any one help me with this??</p>
  
  <pre><code>[{"user_status":"1","country_id":"1","country":"Andorra"},{"user_status":"1","country_id":"2","country":"United Arab Emirates"},{"user_status":"1","country_id":"3","country":"Afghanistan"},{"user_status":"1","country_id":"4","country":"Antigua and Barbuda"},{"user_status":"1","country_id":"5","country":"Anguilla"},{"user_status":"1","country_id":"6","country":"Albania"},{"user_status":"1","country_id":"7","country":"Armenia"},{"user_status":"1","country_id":"8","country":"Angola"},]
  </code></pre>
  
  <p>MY CODE</p>
  
  <pre><code>class Logincity extends
              AsyncTask&lt;String, String, ArrayList&lt;HashMap&lt;String, String&gt;&gt;&gt; {
          private ProgressDialog pDialog;
          private String test;
  
          @Override
          protected void onPreExecute() {
              super.onPreExecute();
              pDialog = new ProgressDialog(Registration.this);
              pDialog.setMessage("Please wait..");
              pDialog.setIndeterminate(true);
              pDialog.setIndeterminateDrawable(getResources().getDrawable(R.drawable.custom_progress));
              pDialog.setCancelable(true);
              pDialog.show();
          }
          protected ArrayList&lt;HashMap&lt;String, String&gt;&gt; doInBackground(
                  String... args) {
              ServiceHandler sh = new ServiceHandler();
              // Making a request to url and getting response
              citydata = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
              String jsonStr = sh.makeServiceCall(CITY_URL, ServiceHandler.GET);
              Log.d("Response: ", "&gt; " + jsonStr);
              if (jsonStr != null) {
                  try {
                      jsonObjcitys = new JSONArray(jsonStr);
                      // state_list = jsonObj.getJSONArray(COUNTRY_LIST);
                      // looping through All Contacts
                      for (int i = 0; i &lt; jsonObjcitys.length(); i++) {
                          JSONObject c = jsonObjcitys.getJSONObject(i);
                          // creating new HashMap
                          HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
                          // adding each child node to HashMap key =&gt; value
                          //map.put(CITY_NAME, c.getString(CITY_NAME));
  
                          map.put(CITY_NAME, c.getString(CITY_NAME));
                          //  map.put(PRESET_TITLES, c.getString(PRESET_TITLES));
                          citydata.add(map);
  
                      }
                  } catch (JSONException e) {
                      e.printStackTrace();
                  }
              } else {
                  Log.e("ServiceHandler", "Couldn't get any data from the url");
              }
              return citydata;
          }
          protected void onPostExecute(ArrayList&lt;HashMap&lt;String, String&gt;&gt; result) {
              super.onPostExecute(result);
              pDialog.dismiss();
              arrallcitiies = new String[citydata.size()];
              for (int index = 0; index &lt; citydata.size(); index++) {
                  HashMap&lt;String, String&gt; map = citydata.get(index);
                  arrallcitiies[index] = map.get(CITY_NAME);
              }
              // pass arrConuntry array to ArrayAdapter&lt;String&gt; constroctor :
              adapterallcities = new ArrayAdapter&lt;String&gt;(
                      Registration.this,
                      android.R.layout.simple_spinner_dropdown_item, arrallcitiies);
              spinrcountry.setAdapter(adapterallcities);
  
              spinrcountry.setPrompt("Select City");
              spinrcountry.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
                  @Override
                  public void onItemSelected(AdapterView&lt;?&gt; adapterView, View view, int i, long l) {
                      cityspitems = spinrcountry.getSelectedItem().toString();
                      System.out.println("PresetEVent selected" + cityspitems);
                  }
  
                  @Override
                  public void onNothingSelected(AdapterView&lt;?&gt; adapterView) {
                  }
              });
  
  
  
  
          }
      }
  </code></pre>