title: How to get this Context in a static method
body: <p>I have a problem in initializing a new object using this in a static method.
  I have a database class like follow.</p>
  
  <pre><code>public class LatLogDBAdapter {   
   private final Context mCtx;     
   private DatabaseHelper mDbHelper;
   private SQLiteDatabase mDb;
  
   private static class DatabaseHelper extends SQLiteOpenHelper {
  
        DatabaseHelper(Context context) {
            super(context, DATABASE_NAME, null, DATABASE_VERSION);
        }
  
  
        @Override
        public void onCreate(SQLiteDatabase db) {
         Log.w(TAG, DATABASE_CREATE);
         db.execSQL(DATABASE_CREATE);
        }      
       }
  </code></pre>
  
  <p>I have a static method in a another class, in that static method I like to initialize DatabaseHelper using this Context, but the error is "Can't use this in a static context".</p>
  
  <p>My static method in a separate class is as follow,</p>
  
  <pre><code> public class DetailMapView extends FragmentActivity {
              public static void updateLocation(String number, String LatLong){
                   LatLogDBAdapter dbHelper = new LatLogDBAdapter(this);
  
             }
  
      }
  </code></pre>
  
  <p>How can I do it not to have error of "Can't use this in a static context".
  Thanks</p>