Хочу присвоить переменной a location.getLatitude(); но выдает ошибку Cannot resolve symbol 'location'
class MyAsyncTask(Location location) extends AsyncTask<String, String, String> {
String server = "http://demo.harrix.org/demo0011";
String a, b, answerHTTP;
Double a = location.getLatitude();
@Override
protected String doInBackground(String... params) {
HttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet(server + "?a=" + a + "&b=" + b);
try {
HttpResponse response = httpclient.execute(httpget);
if (response.getStatusLine().getStatusCode() == 200) {
HttpEntity entity = response.getEntity();
answerHTTP = EntityUtils.toString(entity);
}
}
catch (ClientProtocolException e) {
}
catch (IOException e) {
}
return null;
}}