How to retrieve data from database using arraylist in android?



How to retrieve data from database using arraylist in android?..

Answer / Sachin Narang

To retrieve data from a SQLite database and store it in an ArrayList in Android, you first create a cursor object for your query results. You then loop through the cursor and add each result as an element to your ArrayList.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Android OS Interview Questions

Explain me the difference between oncreate() and onstart()?

1 Answers  


What is a buildtype in gradle?

1 Answers  


Which method is called only once in a fragment life cycle?

1 Answers  


What is calibrated?

1 Answers  


What is the TTL (Time to Live)? Why is it required?

1 Answers  


What are the tools are placed in an android sdk?

1 Answers  


What is activity in android?

1 Answers  


How can I reduce my android system usage?

1 Answers  


What are the different versions of android os that you remember?

1 Answers  


Is android stock better?

1 Answers  


what is a handler thread?

1 Answers  


How to disable landscape mode in android?

1 Answers  


Categories