title: Android AsyncTask error in declaration
body: <p>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</p>
  
  <pre><code>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();
  
      }
  </code></pre>
  
  <p><strong>AsyncCallWS</strong> </p>
  
  <pre><code>public class AsyncCallWS extends AsyncTask&lt;String, Void, Void&gt; {
  
          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");
          }
  
      }
  </code></pre>