"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 <[email protected]>

> 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
>
> 2011/6/17 Jorge Luis <[email protected]>
>
>> In the debug mode i get this msg:
>>
>> 06-17 16:05:43.110: ERROR/CursorWindow(2705): Can't read row# 0, col# 1
>> from CursorWindow. Make sure your Cursor is initialized correctly.
>>
>>  sorry about many messages....
>>
>>
>>
>> 2011/6/17 Jona <[email protected]>
>>
>>> you should explain a little more about what you are having problems
>>> with... If your table has _id than you probably wan to call 
>>> results.add(r.getString(1));
>>> not results.add(r.getString(0));
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>>
>> --
>>  Jorge Luis Ferrari Cé
>> Desenvolvedor / Web Designer
>> Siga @JLFerrari
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Jorge Luis Ferrari Cé
Desenvolvedor / Web Designer
Siga @JLFerrari

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

Reply via email to