http://developer.android.com/guide/topics/data/data-storage.html#db

I would guess you've already read this.

And - sorry if I repeat myself - change your code to use
getColumnIndexOrThrow, and see where it gets you.

-- Kostya

2011/6/17 Jorge Luis <jorgelferr...@gmail.com>

> Which one is the proper and most optimized way to start a db connection?
>
> I guess tha if i know this my problem will be solved. :D
>
>
> 2011/6/17 Kostya Vasilyev <kmans...@gmail.com>
>
>> Did you already change and rerun your code, with the change I suggested?
>>
>> 2011/6/17 Jorge Luis <jorgelferr...@gmail.com>
>>
>>> "For the column index, don't use a hardcoded value - call
>>> r.getColumnIndexOrThrow("Nota") and use the return value. If it throws,
>>> then the column is not in that query's result and you've got a problem with
>>> how you've initialized the database."
>>>
>>> which is probably my problem...
>>> i there something wrong with my database initialization?
>>>
>>> 2011/6/17 Kostya Vasilyev <kmans...@gmail.com>
>>>
>>>> Well, either the row or the column number is wrong then.
>>>>
>>>> The row is probably not wrong, although that loop looks a little more
>>>> complicated than I like :)
>>>>
>>>> For the column index, don't use a hardcoded value - call
>>>> r.getColumnIndexOrThrow("Nota") and use the return value. If it throws, 
>>>> then
>>>> the column is not in that query's result and you've got a problem with how
>>>> you've initialized the database.
>>>>
>>>> -- Kostya
>>>>
>>>>

-- 
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