title: getResources() is throwing an error
body: <p>I have the following code which is used for creating a custom <code>ListView</code> in my app with two tabs:</p>
  
  <pre><code>package com.test.testing;
  
  import android.content.Context;
  import android.text.Html;
  
  public class SetRows {
      int image;
      String name;
      String id;
  
      public int getImage () {
          return image;
      }
  
      public void setImage (int image) {
          this.image = image;
      }
  
      public String getName () {
          return name;
      }
  
      public void setName (String name) {
          this.name = name;
      }
  
      public String getID () {
          return id;
      }
  
      public void setID (String id) {
          this.id = id;
      }
  
      public SetRows(int image, String name, String id) {
  
          super();
          this.image = image;
          this.name = Html.fromHtml(getResources().getString(R.string.colorcol)) + " COLOR: \n\t" + name;
          this.id = "MEANS: \n\t" +  id;
      }
  
  }
  </code></pre>
  
  <p>The following line: </p>
  
  <p><code>this.name = Html.fromHtml(getResources().getString(R.string.colorcol)) + " COLOR: \n\t" + name;</code></p>
  
  <p>gives me the following error:</p>
  
  <p><code>The method getResources() is undefined for the type SetRows</code></p>