N
N
Neonoviiwolf2017-08-05 12:10:32
Android
Neonoviiwolf, 2017-08-05 12:10:32

How to correctly determine if something came to the request from the database in the Cursor?

Good , I
thought, but how do they usually find out if the Cursor is empty,
I write like this

Cursor cursor = sql.rawQuery("SELECT * FROM " + .....);
        if (cursor.moveToNext()) {
            cursor.moveToFirst();
            .....}

I'm not sure if it's correct

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aol-nnov, 2017-08-05
@aol-nnov

really how ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question