- How we can associate items with images and other arbitrary data?
- How we get data from an external database etc..
for #1, we do not support arbitrary extension of the inventory schema, however, you can keep a mapping from the inventory item's ID (UUID) to whatever meta data you wish.
For #2, I don't understand your question. Can you elaborate? You can use standard Android / Java networking to access a cloud-based DB, or you can use sqlite to store a local DB on the device.
for #1, Am getting items from Inventory.But i need to add other extra field such as calorie and allergen.So how can i keep a mapping from the inventory's ID to item calorie and allergen?
I answered in another post. It's up to how you want to code it. It's a general data storage issue. Your best bet probably would be to use a local sqlite DB, if you only need the information on that device. If you need the same information x-device, you'll need to host a web service that can fetch and set the values, and sync them down to each device.
2 People are following this question.