0

I am looking for a smart, simple way for my app to remember if my table is checked or not.

The logical way would be to create a table with the names of all tables and a boolean value for each one. Another way would be to do that with SharedPreferences.

Are there any other options that not involving the db, perhaps like a tag or something like that?

In the end, all I want is for the app to remember if a table set share or not.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Jesus Dimrix
  • 4,378
  • 4
  • 28
  • 62

1 Answers1

0

This answer explains how to create your own subclass of android.app.Application which you can store global variables in. This same approach should help you achieve what you want to do without using a database or shared preferences.

Community
  • 1
  • 1
cjackson
  • 1,637
  • 1
  • 13
  • 25