I have this method in a class (non-activity) -
public boolean usernameChk(String usrname) { String usrnmQuery = \"SELECT * FROM \" + TABLE_ACCOUNTS + \"
The Context you pass to your DatabaseHandler constructor is null.
Context
DatabaseHandler
null
That's the explanation for the NPE in getDatabaseLocked(). To get help fixing that, post code where you initialize the context.
getDatabaseLocked()