“The first line of code: Android” this book has been finished, is currently writing a debut, encountered a lot of problems, want to understand the relevant knowledge of enterprise Android development through this platform.

At present, I am writing a language finch document management APP. From reading the language Finch API document, I can know that their interface authenticates identity through Token, but I don’t know how to store this Token locally properly. So far, I have learned that there are two ways.

  1. Text file
  2. The database

My own idea is to take the database, create a new table, put a single data in the data format:

id key value
1 token xxx

Then read the corresponding token value through key = token.

I don’t know if this is appropriate in an enterprise. Or whether there’s a better way to store this data