I am working on an android project. Its a tutorials app in which I am providing 100 chapters. But I am not getting exactly how to store these chapters in my app's local database and how to fetch it on button click. I want to provide the facility on button click the next activity must be opened and the contents of the chapters must be loaded on that activity. For Example. If I click on Button "Chapter 1" then 1st chapter must be loaded from SQlite database. I have followed lots of tutorials but I am not satisfied. Please Somebody Help Me.
You have 2 choices:
Source: http://www.sqlite.org/faq.html#q9
SQLite will be happy to store a 500-million character string there
For database design. You can do like this:
- Book table ( _id, name, ...)
- Chapter table (_id, content (TEXT,BLOB), book_id, chapter_number, ...);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With