2

I am developing an Android application where you should be able to browse certain recipes.

I am retrieving the information about the recipes from SQLite database table, and retrieved some columns in a listview form. Now I want to store some of the retrieved datas into my favourites page, when I click favourite button in list. How can it possible..I want to implement "Add to favourites" feature in my app

How can I store that kind of info in the form of listview Using SQlite database?

Any ideas? Example code?

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
Pradeep Menon
  • 163
  • 1
  • 12

2 Answers2

2

Just add a new table to your SQLite database called favourites, and store the recipe_id in there.

joey
  • 578
  • 4
  • 10
0

You can create new Sqlite file using SQlite manager and then use these links to copy that database in your application.First put the database (SQlite file)in assets folder and then copy it using method shown in these answers:

Database not copying from assets

adding your own SQLite database to an android application

Community
  • 1
  • 1
Jaydeep Khamar
  • 5,975
  • 3
  • 32
  • 30
  • ThankYou, I already have such a database table and retrieved some columns in a listview form. Now I want to store some of the retrieved datas into my favourites page, when I click favourite button. How can it possible..I want to implement "Add to favourites" feature in my app. Please help me with any ideas or example codes. – Pradeep Menon Jun 04 '11 at 09:15