What I want to do is check if there's any data inside the profilePicture column on 'profiles' table, if there's no data, the getCount will return 0 and shall return false. How do I make the query to only fetch the data in profilePicture column to see if it's null or not for the user id.
public Boolean checkProfilePicture(String user_id){
SQLiteDatabase MyDB = this.getReadableDatabase();
Cursor cursor = MyDB.rawQuery("Select * from profiles where ID = ? and profilePicture = NULL", new String[] {user_id});
System.out.println(cursor.getCount());
if (cursor.getCount() > 0)
return true;
else
return false;
}