Umesh Nil Soni
Umesh Nil Soni

Reputation: 11

query about data storing in android

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

Answers (3)

Binoy Babu
Binoy Babu

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

323go
323go

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

Yogendra Singh
Yogendra Singh

Reputation: 34397

I think you should use some light weight database. Some options as below:

  1. 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.

  2. 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

Related Questions