c.getString(c.getColumnIndexOrThrow(UN))

On 9月11日, 下午8时37分, Mystique <joven.ch...@gmail.com> wrote:
> Cancel my last qns, I understood and get it work already :)
>
> On Sep 11, 8:32 pm, Mystique <joven.ch...@gmail.com> wrote:
>
> > Dear Mr. Murphy,
>
> > Thanks, I understood this part ok
> > c.moveToPosition(position); // where c is your Cursor
> > String temp=c.getString(...); // where ... is whatever column number
>
> > My cursor was created in onCreate, how do I initial it in public void
> > onListItemClick?
> > This part I do not understand.
>
> > On Sep 11, 8:19 pm, Mark Murphy <mmur...@commonsware.com> wrote:
>
> > > On Sat, Sep 11, 2010 at 8:04 AM, Mystique <joven.ch...@gmail.com> wrote:
> > > > So if I want to get value of UN, I do this -> String temp =
> > > > moveToPosition(UN)?
>
> > > No.
>
> > > c.moveToPosition(position); // where c is your Cursor
> > > String temp=c.getString(...); // where ... is whatever column number
> > > you are seeking
>
> > > --
> > > Mark Murphy (a Commons 
> > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > > _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
> > > Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to