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
- put data (like instance of
list<mypieceofinformation>
) inapplicationcontext
, - 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
Post a Comment