There are 30 buttons. By pressing the "button 1" - removed "text 1", by pressing the "button 4" removed "text 4" (each text contains slightly more than 1000 words). The functionality of the application is only in removing the text when you click on the side menu button.

So, what are the disadvantages, if you store these texts not in the database, but in a string ? Or for such an application can be stored in string , and there will be only an insignificant increase in the weight of the apk-файла ? Do not ask please "what is the problem of making a database?". I am only interested in the disadvantages of using string for data storage. Thank.

    1 answer 1

    With such basic data there is no fundamental difference where the text is stored. Implement as you prefer you can through the database through a string. Pay attention to the possible development of your application (adding other languages, functionality) and on this basis make a decision.

    • only the amount of text (buttons) will change. 2 fragments (one text only), the second (text and 2 buttons, which also switch text) .. and a two-level menu. With this all, the use of data in string is suitable, will there be no memory and create discomfort for the user? - Alexey
    • one
      it's very simple, and string will do. if further plans were to edit this text, add information to an existing text, etc., then it would be better to use the database. In terms of speed and memory, the user will not feel the difference in such volumes - ZigZag
    • I would choose to store data online. - Tim K.
    • Do you mean dynamic text editing? Since in updates I will sometimes add a couple of lines in the text, but this is not in the application, but programmatically, as I am creating it now. Unfortunately, the fundamental task is to make an application that can be used without access to the Internet. - Alexey
    • Yes, I talked about dynamic text editing by the user. if you update something in the text in an update, then everything remains within the framework of the previously given answer - ZigZag