how to save data that returns a cursor Android
===

I have a database with a table tha is filled with tasks. every task has a unique id and a father's id in order to achieve nesting. my problem is that i cannot save properly the data that the cursor returns and i get an arrayOutOfboundsException.
here is my code. thank you in advance


