0

I'm developing an application with an Artificial Neural Network that undergoes a training phase, once complete I will set a Boolean to True. I need to store this Boolean so that the next time the application is opened it checks to see if the Boolean is True, if it is the Training Phase will not be entered.

Could anyone tell me how to do this? I'd really really appreciate the help as I'm under time constraints!!

Thanks in advance

DJ-DOO
  • 4,545
  • 15
  • 58
  • 98
  • It's not, it's a genuine query... sorry to disappoint Inspector Wiser... – DJ-DOO Apr 16 '13 at 21:39
  • As I didn't know what methodology to use in order to do this I don't feel it is a duplicate..the link you refer to requests information on shared preferences, I don't. So that didn't answer my question, it aids me now after getting an answer to my question – DJ-DOO Apr 17 '13 at 06:31

1 Answers1

1

You want to use SharedPreferences. It is permanent storage that uses key/value pairs to store data. I could give an example but there are plenty on SO.

Docs Example

SO examples

Community
  • 1
  • 1
codeMagic
  • 44,549
  • 13
  • 77
  • 93