[Solved] keeping a public static arraylist in a activity in android, is a good practice?


It’s not a good practice for sure!
You have two options in this case.

  1. If you would be downloading those strings every time you run a fresh app then it would be better to keep that list in a Singleton class.
  2. Or if you just want to download the first time and then probably not much again in future then definitely save it in the database.

4

solved keeping a public static arraylist in a activity in android, is a good practice?