Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - what cursor means?

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 !
bqbqhahabq
Junior Developer
Junior Developer
 
Posts: 18
Joined: Tue Nov 17, 2009 6:57 am

Top

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.
-Kur
Kur1310
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

Cheers!
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
I_Artist
Developer
Developer
 
Posts: 33
Joined: Fri Oct 16, 2009 3:49 am
Location: St-Eustache, Quebec

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 3 guests