1

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.

4

3 回答 3

1

这个问题实在是太笼统了,无法回答。但是这个项目应该为您想要的东西提供一个良好的开端:货架

一旦你开始,回来提出更具体的问题,不要低估搜索功能和谷歌。

于 2012-11-28T15:42:08.257 回答
0

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.

于 2012-11-28T15:41:53.293 回答
0

最有效的方法是使用SQLite数据库。要参加速成课程SQLite,请到这里。至于存储图片,你应该将它存储在 sdcard 中,并将图像的路径保存在SQLite database.

于 2012-11-28T15:43:13.327 回答