Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old February 9th, 2010, 01:57 AM   #1 (permalink)
New Member
 
Join Date: Jan 2010
Posts: 3
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with cursor!!!

Hello everyone!
i'm trying to do with database in android.
here is my code

public
Cursor getName()
{

Cursor mCursor =
db.query(true, DATABASE_TABLE, new String[] {
KEY_ROWID,KEY_NAME},
null,
null,
null,
null,
null,
null);
return mCursor;

}

// where i show cursor
TextView id = (TextView) view.findViewById(android.R.id.
text1);

id.setText(cursor.getString(0));

if i just select only KEY_NAME like this (

new String[] {KEY_NAME})my application doesnt work, its ok if i have enough KEY_ROWID,KEY_NAME .

Anyone has problem like me please help
thanks in advance

kitty is offline  
Reply With Quote
Sponsors
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cursor app theboo7 HTC Droid Eris 9 October 6th, 2011 08:29 AM
Cursor for ListView has more than 1 MB Markus Taubek Application Development 0 January 12th, 2011 10:07 AM
How to get the cursor where you want it Nolesfan Droid X - Support and Troubleshooting 1 July 18th, 2010 10:55 PM
How do I get the cursor to go where I want it. aliveon2legs HTC EVO 4G 8 June 8th, 2010 09:53 AM
Bad cursor zip2010 Introductions 6 January 27th, 2010 09:37 PM



All times are GMT -5. The time now is 08:40 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo


SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.