Google maps Places API not working <pre><code>package com.example.googlemapstestproject; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.net.URLEncoder; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.os.AsyncTask; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.text.Editable; import android.text.TextWatcher; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.AutoCompleteTextView; import android.widget.Button; import android.widget.SimpleAdapter; import android.widget.Toast; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.GoogleMap.OnMapLongClickListener; import com.google.android.gms.maps.GoogleMap.OnMyLocationButtonClickListener; import com.google.android.gms.maps.MapFragment; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.model.MarkerOptions; public class MainActivity extends ActionBarActivity implements OnMapLongClickListener, OnMyLocationButtonClickListener, android.view.View.OnClickListener { private GoogleMap mMap; Button userLocation;`enter code here` GPSTracker gps; PlacesTask placesTask; ParserTask parserTask; AutoCompleteTextView autoCompView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); autoCompView = (AutoCompleteTextView) findViewById(R.id.atv_places); autoCompView.setThreshold(1); autoCompView.addTextChangedListener(new TextWatcher() { @Override public void onTextChanged(CharSequence s, int start, int before, int count) { placesTask = new PlacesTask(); placesTask.execute(s.toString()); } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { // TODO Auto-generated method stub } @Override public void afterTextChanged(Editable s) { // TODO Auto-generated method stub } }); try { // Loading map initilizeMap(); } catch (Exception e) { e.printStackTrace(); } mMap.setOnMapLongClickListener(this); mMap.setMyLocationEnabled(true); mMap.getUiSettings().setZoomControlsEnabled(true); } private String downloadUrl(String strUrl) throws IOException { String data = ""; InputStream iStream = null; HttpURLConnection urlConnection = null; try { URL url = new URL(strUrl); // Creating an http connection to communicate with url urlConnection = (HttpURLConnection) url.openConnection(); // Connecting to url urlConnection.connect(); // Reading data from url iStream = urlConnection.getInputStream(); BufferedReader br = new BufferedReader(new InputStreamReader(iStream)); StringBuffer sb = new StringBuffer(); String line = ""; while ((line = br.readLine()) != null) { sb.append(line); } data = sb.toString(); br.close(); } catch (Exception e) { Log.d("Exception while downloading url", e.toString()); } finally { iStream.close(); urlConnection.disconnect(); } return data; } // Fetches all places from GooglePlaces AutoComplete Web Service private class PlacesTask extends AsyncTask&lt;String, Void, String&gt; { @Override protected String doInBackground(String... place) { // For storing data from web service String data = ""; // Obtain browser key from https://code.google.com/apis/console String key = "key=AIzaSyDTg7d-JNRLRxe75QDEEeAGr1xnSHGX9V4"; String input = ""; try { input = "input=" + URLEncoder.encode(place[0], "utf-8"); } catch (UnsupportedEncodingException e1) { e1.printStackTrace(); } // place type to be searched String types = "types=(cities)"; // Sensor enabled String sensor = "sensor=false"; // Building the parameters to the web service String parameters = input + "&amp;" + types + "&amp;" + sensor + "&amp;" + key; // Output format String output = "json"; // Building the url to the web service String url = "https://maps.googleapis.com/maps/api/place/autocomplete/" + output + "?" + parameters; try { // Fetching the data from we service data = downloadUrl(url); } catch (Exception e) { Log.d("Background Task", e.toString()); } return data; } // Executed after the complete execution of doInBackground() method @Override protected void onPostExecute(String result) { // Instantiating ParserTask which parses the json data from // Geocoding webservice // in a non-ui thread ParserTask parserTask = new ParserTask(); // Start parsing the places in JSON format // Invokes the "doInBackground()" method of the class ParseTask parserTask.execute(result); } } // A class to parse the Google Places in JSON format private class ParserTask extends AsyncTask&lt;String, Integer, List&lt;HashMap&lt;String, String&gt;&gt;&gt; { JSONObject jObject; @Override protected List&lt;HashMap&lt;String, String&gt;&gt; doInBackground(String... jsonData) { List&lt;HashMap&lt;String, String&gt;&gt; places = null; PlaceJSONParser placeJsonParser = new PlaceJSONParser(); try { jObject = new JSONObject(jsonData[0]); // Getting the parsed data as a List places = placeJsonParser.parse(jObject); } catch (Exception e) { Log.d("Exception", e.toString()); } return places; } @Override protected void onPostExecute(List&lt;HashMap&lt;String, String&gt;&gt; result) { String[] from = new String[] { "description" }; int[] to = new int[] { R.layout.listview_layout }; // Creating a SimpleAdapter for the AutoCompleteTextView SimpleAdapter adapter = new SimpleAdapter(getBaseContext(), result, android.R.layout.simple_list_item_1, from, to); // Setting the adapter autoCompView.setAdapter(adapter); } } @Override public void onClick(View v) { // TODO Auto-generated method stub } } </code></pre> <p>Updated code update, everything looks fine it is just that there is nothing appearing still when I type in a place.</p> <p>I have made the google maps half and half with a listview as well so if anyone has any good solutions on how to get them to work together that would be great.</p>