question

sunisha avatar image
sunisha asked Jeffrey Blattman answered

How we can keep a mapping from the inventory item's ID (UUID) to meta data?

  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?
  2. Can you give example or any tutorial regarding this.
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered

You can keep your own mapping from the item's ID to whatever meta data you require. E.g., create your own sqlite DB with columns item_id, item_calorie and allergen. http://developer.android.com/referenc...

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community