0

I have a simple broadcast receiver which receives some data which I would like to store for the application to use on next launch. It is just a few strings so simplicity is the goal. Normally I'd just write to to a file or sharedPreferences but not being an activity that seems incorrect.

Thoughts?

-- Henry

henry
  • 1,716
  • 3
  • 15
  • 27

1 Answers1

2

Saving into SharedPreferences is perfectly fine. You have a Context to access it from as it is passed into the BroadcastReceiver.

Jeremy Edwards
  • 14,620
  • 17
  • 74
  • 99