in this particular line of code returned cursor is not even assigned so adapter will not help you anyway