0

I'm going to build an application used by many user, where the user can set some settings. These settings can be some preferences and some "numbers"; and i'm not so strong in Android development. So what can you tell me about that, I mean where could I save these parameters (a file? saved on device?) because the application is accessible without a login, so preferences can't be saved on server. Excuse me if this is a duplicated topic; because I really don't know what I want. Thank you for attention !

John Doe
  • 13
  • 7

1 Answers1

0

You can start from reading this article which is about Managing Lifecycle of an activity.

In general you can use either the Bundle object to save your data and restore them everytime or probably use a less recommended way which is a database (SQLlite).

I'd recommend reading, comprehending and using the Bundle option.

And some extra reading with almost same questions:
What's onCreate(Bundle savedInstanceState)
Saving Android Activity state

Rapsoulis
  • 232
  • 5
  • 13
  • And another reading material I just "stumbled" upon: https://developer.android.com/guide/topics/data/data-storage.htm – Rapsoulis May 19 '16 at 17:16