I'm still a bit new to Java and went straight in Android programming so I'm a little bit confused in some programming practices.. I just want to ask how can I call this method from another class to my OnCreate()? My method is in DBFunctions.java. Basically, I will use this in my game's options.
public void checkExistence(Cursor check) {
String sql = "SELECT * FROM option WHERE id = 1";
check = db.rawQuery(sql, null);`
}
I want to call this in my OnCreate(). If value exists, I just want first to display "Value exists", else "No Value exists". Please also correct me if the cursor inside the parameter is right..