Access databasehelper object globally
<p>Whenever i need to create SQLiteOpenHelper 'databasehelper' object, i need to pass the context in function call.</p>

<p><code>dbUtils.setEntityValues(this, moduleId, sendTo)</code></p>

<p>the 'this' parameter refers to the activity context. each time new databasehelper object is creating and perform db tasks.</p>

<pre><code>DataBaseHelper dbHelper = new DataBaseHelper(context);


    try {
        dbHelper.openDataBase();

        SQLiteDatabase db = dbHelper.getReadableDatabase();
</code></pre>

<p>From class files which are not extending Activity or Application, i cant create databasehelper object. Is there any way to get databasehelper object globally? OR any way to get the application context in classes that are not Activity...?</p>

<p>Im an android beginner, please suggest some tips..</p>

<p>Thanks in advance,
Joe</p>
