Android static variables are lost

前端 未结 3 1710
粉色の甜心
粉色の甜心 2021-01-19 01:46

I am using a class with only static variables to store all constants and run-time properties. But, recently I have seen instances when I\'m referencing these variables, I ge

3条回答
  •  滥情空心
    2021-01-19 01:58

    Only public static String androidId; can be null, when you want to use it you should init it in this class or in some other class in onResume()

提交回复
热议问题