andbook!.pdf - Learning Android Get an anddev.org - Android-Shirt Back to index
anddev.org Header Logo
FAQ Search Top rated articles Browse Feeds anddev.org - Authors Contact Details Register Log in

Working with the SQLite-Database - Cursors

Goto page Previous  1, 2, 3, 4
 
       anddev.org - Android Development Community | Android Tutorials | Index -> Novice Tutorials
Author Message
szeldon
Freshman


Joined: 14 Feb 2008
Posts: 3

PostPosted: Sun May 18, 2008 11:04 pm    Post subject: Reply with quote

I'm not completly sure, but I think that you should close your cursor after using it.
_________________
szeldon.com
Back to top
View user's profile Send private message
nithin.warier
Developer


Joined: 28 Feb 2008
Posts: 36

PostPosted: Wed May 28, 2008 1:58 pm    Post subject: Reply with quote

Hi plusminus,

how we can get the maximum value of an attribute in a table, in terminal , i checked and its working,

the query is -> select max(key) from Testing;

but how we can do this in Android.

please reply immediately

Thanks
Nithin
Back to top
View user's profile Send private message
nithin.warier
Developer


Joined: 28 Feb 2008
Posts: 36

PostPosted: Wed May 28, 2008 2:59 pm    Post subject: Reply with quote

Here, the return value is an integer, but for Sqlitedatabase.query() its returning cursor, so how can we get the integer value.

thanks
Nithin
Back to top
View user's profile Send private message
Display posts from previous:   
       anddev.org - Android Development Community | Android Tutorials | Index -> Novice Tutorials All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


© 2007, Android Development Community
All rights reserved.
Powered by phpBB.