what cursor means?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

what cursor means?

Postby bqbqhahabq » Fri Nov 20, 2009 9:42 am

Hey, Thank you. ^^ ;

I have a question about 'cursor' (maybe in database word)...

When I searched for 'Sqlite' articles, there is many mentions about 'cursor'.


Why there is 'cursor' in database ?? 'Cursor' is something twinkle indicates the location of tying, right ?
(like in DOS command windows...)

What does 'cursor' means in android (and Sqlite ) ???

thank you in advance !
Junior Developer
Junior Developer
Posts: 18
Joined: Tue Nov 17, 2009 6:57 am


Postby Kur1310 » Fri Nov 20, 2009 1:21 pm

in simple words cursor means the pointer to the recordset returned by executing a specific query...
Using this cursor u can move to records in that recordset.
Junior Developer
Junior Developer
Posts: 20
Joined: Wed Oct 28, 2009 10:50 am

Postby I_Artist » Fri Nov 20, 2009 2:23 pm

A cursor is like an iterator. It allows you to traverse the dataset that is returned by query in an easy and concise way.

Usually when you receive a Cursor object, it will point before the first item in your dataset, you can use moveNext() to go to the first (and subsequent) records. This is usually done inside a loop.

You'll find the documentation for the Cursor class here

You'll also find an example of how to use Cursors in the Notepad example

The I_Artist

follow me on Twitter: @I_Artist
follow Android Development on Twitter: #androiddev

Show the world that you are an #androiddev, wear the badge http://www.twibbon.com/join/androiddev
User avatar
Posts: 33
Joined: Fri Oct 16, 2009 3:49 am
Location: St-Eustache, Quebec


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests