2

Like I'm trying to develop an application that already has data(paragraphs) . So the user will basically press a button to open up the specific texts.

From the tutorials I've done, I can only add them from the app, while I would want them to already come with the app. how would I go about this with sqlite or should I use something else?

Rekmover
  • 21
  • 2

1 Answers1

1

In Android you can add prepared data to application in different ways. You need to choose the best way for your situation. For example:

  1. You can prepare sqlite db file. Add in to application assets folder and after application will be first launched copy this db to internal sqlite db.
  2. Add your text file to assets folder and the in application get data from it.
  3. Add your file to raw resource folder, and then get it from there.
  4. Or if your data is String, int ets. of Array you can add it to resource values
Natali
  • 2,934
  • 4
  • 39
  • 53