title: Trouble with Constructor with helper
body: <p>VPAdapter.java</p>
  
  <pre><code>public class VPAdapter extends PagerAdapter 
  {     
       public static String[] titles;
       public final Context context;
       public int[] scrollPosition;
       JSONArray categories = null; 
       JSONArray newstype = null; 
       JSONObject json;
       DatabaseHandler db = new DatabaseHandler(context)//error:The blank final field context may not have been initialized
  ...
  }
  </code></pre>
  
  <p>DatabaseHandler.java</p>
  
  <pre><code>public class DatabaseHandler extends SQLiteOpenHelper {
  public DatabaseHandler(Context context) {
      super(context, DATABASE_NAME, null, DATABASE_VERSION);
  }
  </code></pre>
  
  <p>On <code>VPAdapter.java</code> I wanted to access <code>DatabaseHandler</code> anywhere, but there is problem with the constructor. What is the proper way I should write them?</p>