jepperaskdk
Lurker
Hi, I can't use my main thread for going online it seems. I have to check if my user is already logged in, and this is done like this:
How do i use the AsyncTask on this, when it returns boolean?
DatabaseHandler just checks if theres a row with information and returns 1 if so.
HTML:
public boolean isUserLoggedIn(Context context){
DatabaseHandler db = new DatabaseHandler(context);
int count = db.getRowCount();
if(count > 0){
// user logged in
return true;
}
return false;
}
DatabaseHandler just checks if theres a row with information and returns 1 if so.
