title: new to android - not able to access global variable in protected static method
body: <p>here is my code:</p>
  
  <pre><code>protected static Bitmap scaleImage() { 
  Bitmap nad =    BitmapFactory.decodeFile(path);
  
  return nad;
  }
  </code></pre>
  
  <p>"path" is a global variable, and it gives me an error stating: cannot make a static reference to a non-static field path... may be this is happening because path is a string, and not a static.. but how else can I access other variables in here? I tried looking through the documentation but could not find anything.</p>