How to write to and read data from Android's ApplicationContext? -


in app need central storage object accessed different parts of application (like singleton data holder).

afaik clean way implement singletons in android use applicationcontext.

how can

  1. put data (like instance of list<mypieceofinformation>) in applicationcontext ,
  2. get them out of it

?

is correct way store more or less complex data in android use built-in sqlite database?

you can use mysql , others well. depends if want save data in local or external. external, example, can use mysql , web server, communicate using json.

for saving list, can use static.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -