0

In my android application im using web-service to get information about food the problem that if i write appl instead of apple,row,skin it dosent fill automatically and an error message will be shown,, what i did i stored 2000 name from web service in sqlite and search through them is it wrong to do this ? and how can i search with misspelling in web-service without the error message ? The api url http://api.nal.usda.gov/ndb/search/?format=json&q=apple&sort=n&max=25&offset=0&api_key=DEMO_KEY

userr12
  • 65
  • 1
  • 8

1 Answers1

0

Salam Enas, If the data do change frequently (like a movies list) then it's not ok to store it in the sqlite and it's better to be stored in the server database. If the data does not change frequently, then it's ok to store them on the sqlite database although the app size will increase by 2 Mb which is a drawback. You may also want to consider other APIs if you are not committed to use this one. When storing data on the server, HTTP requests burden can be alleviated by caching data on the mobile. good luck :)

WadeeSami
  • 59
  • 4