Reputation: 11
How can I store data about books like author name, price, category etc in a book shopping android app and retrieve all books with details including corresponding image on selecting a category of book in a activity page?
I want to create stock inventory for my app that contain images with other data and retrieve these data. I'm using eclipse for developing my android app.
Upvotes: 1
Views: 61
Reputation: 17139
The most efficient way to do that will be by using an SQLite
database. For a crash course in SQLite
, go here. As for storing pictures, you should store it in sdcard and save paths to the images in the SQLite
database
.
Upvotes: 0
Reputation: 14274
This question is really too general to be answered. But this project should give you a good start for what you want: Shelves.
Once you get going, come back with more specific questions, and don't underestimate the search function and google.
Upvotes: 1
Reputation: 34397
I think you should use some light weight database. Some options as below:
SQLite: SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. SQLite is the most widely deployed SQL database engine in the world. The source code for SQLite is in the public domain.
HSQL: HSQLDB (HyperSQL DataBase) is the leading SQL relational database engine written in Java. It offers a small, fast multithreaded and transactional database engine with in-memory and disk-based tables and supports embedded and server modes. It includes a powerful command line SQL tool and simple GUI query tools.
Upvotes: 0