android - How to allow users to add their own Category into the string Array? -


currently, i'm doing android app, stored categories inside string array , them spinner.

now problem is, if user needs add own category, possible add categories inside string array? or need store these categories inside database?

this string array:

<string-array name="array_categories">     <item>food</item>     <item>clothing</item>     <item>transportation</item>     <item>entertainment</item>     <item>halls</item>     <item>jewellery</item>     <item>other</item> </string-array>` 

resources stored in application generated during compile-time , read-only during runtime. can't modify them.

you try use sqlite database storing information. first time run application take data xml array , store in database. next time when update server can add/modify database.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -