Hi have one database and I've created a Database class that has a private static class DbHelper extends SQLiteOpenHelper to help me manage my database.
This database is access from four different activities.
Now What I need is? I have a GlobalClass like this:
public class Question extends Application{
     private String check;
     public String getCheck() {
         return check;
     }
     public void setCheck(String check) {
         this.check = check;
     }
}
In FirstScreen Activity I have a value for String check. If I get in other Activity Class its fine, no problem.
If I get in DBHelper I can't. I have tried like this:
final Question quiz = (Question) getApplicationContext();
final String check  = quiz.getCheck();
it shows error in getApplicationContext(). How can I get that value in DBHelper class
Please let me know what is wrong with the syntax.
 
     
     
    