// Path: ESCAPE/src/se/chalmers/dat255/group22/escape/utils/Constants.java
// public static final String APPTAG = "ESCAPE";


import static se.chalmers.dat255.group22.escape.utils.Constants.APPTAG;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Locale;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import se.chalmers.dat255.group22.escape.R;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
package se.chalmers.dat255.group22.escape.utils;





/**
 * @author tholene
 */
public class GetPlaces extends AsyncTask<String, Void, ArrayList<String>> {
	private AutoCompleteTextView autoCompleteTextView;
	private ArrayAdapter<String> adapter;
	private Context context;

	public GetPlaces(AutoCompleteTextView autoCompleteTextView,
			ArrayAdapter<String> adapter, Context context) {
		this.autoCompleteTextView = autoCompleteTextView;
		this.adapter = adapter;
		this.context = context;
	}

	@Override
	// three dots is java for an array of strings
	protected ArrayList<String> doInBackground(String... args) {

// Path: ESCAPE/src/se/chalmers/dat255/group22/escape/utils/Constants.java
// public static final String APPTAG = "ESCAPE";


// Path: ESCAPE/src/se/chalmers/dat255/group22/escape/utils/GetPlaces.java
import static se.chalmers.dat255.group22.escape.utils.Constants.APPTAG;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Locale;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import se.chalmers.dat255.group22.escape.R;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;

package se.chalmers.dat255.group22.escape.utils;





/**
 * @author tholene
 */
public class GetPlaces extends AsyncTask<String, Void, ArrayList<String>> {
	private AutoCompleteTextView autoCompleteTextView;
	private ArrayAdapter<String> adapter;
	private Context context;

	public GetPlaces(AutoCompleteTextView autoCompleteTextView,
			ArrayAdapter<String> adapter, Context context) {
		this.autoCompleteTextView = autoCompleteTextView;
		this.adapter = adapter;
		this.context = context;
	}

	@Override
	// three dots is java for an array of strings
	protected ArrayList<String> doInBackground(String... args) {

		Log.d(APPTAG, "doInBackground");