Getting context of Android inside additional classes
<p>Created java class DBOperations i android project to realize database operations but found that some operations need Context object. Couldn't get it with <strong>this</strong> or <strong>getapplicationcontext</strong> method. I decided to pass context object as a paramether,e.g. </p>

<pre><code>Mymdhod(this);
</code></pre>

<p>Is it correct way or there are other methods to get application context?</p>