I'm getting this error "No enclosing instance of type Datagetter is accessible. Must qualify the allocation with an enclosing instance of type Datagetter (e.g. x.new A() where x is an instance of Datagetter)." and my code is
public static void initializeValues
(String _NAMESPACE , String _URL , String _SOAP_ACTION ,
String _METHOD_NAME , String _PARAM_NAME , String _PARAM_VALUE)
{
NAMESPACE = _NAMESPACE ;
URL = _URL ;
SOAP_ACTION = _SOAP_ACTION ;
METHOD_NAME = _METHOD_NAME ;
PARAM_NAME = _PARAM_NAME ;
PARAM_VALUE = _PARAM_VALUE ;
TAG = "Name of log" ;
AsyncCallWS task = new AsyncCallWS();
//Call execute
task.execute();
}
AsyncCallWS
public class AsyncCallWS extends AsyncTask<String, Void, Void> {
protected Void doInBackground(String... params) {
Log.i(TAG, "doInBackground");
getDataFromWebservice();
return null;
}
protected void onPostExecute(Void result) {
Log.i(TAG, "onPostExecute");
// tv.setText(fahren + "° F");
}
protected void onPreExecute() {
Log.i(TAG, "onPreExecute");
// tv.setText("Calculating...");
}
protected void onProgressUpdate(Void... values) {
Log.i(TAG, "onProgressUpdate");
}
}