title: Android context from a non activity class
body: <p>In my SQLite setup class I have a DbHelper that requires a Context as a part of it. To Setup the context, I just use a constructor in my SQLite class that requires a context as a part of  it parameters. </p>
  
  <p>But I just encountered a problem. When trying to call my SQLite class from a class which is not an Activity, I can't use as the <code>context classname.this</code>, and it is bugging me.</p>
  
  <p>I also tried to do this to declare a context:</p>
  
  <pre><code>protected Context context;
  </code></pre>
  
  <p>And then later on call it like this:</p>
  
  <pre><code>SetSql PlayerObject = new SetSql(This.context);
  </code></pre>
  
  <p>But this didn't work either.</p>
  
  <p>Any suggestion please?</p>