When to call activity context OR application context?

后端 未结 7 1428
野的像风
野的像风 2020-11-21 06:10

There has been a lot of posting about what these two contexts are.. But I\'m still not getting it quite right

As I understand it so far: Each is an instance of its c

7条回答
  •  借酒劲吻你
    2020-11-21 06:12

    I used this table as a guidance for when to use the different types of Context such as Application context (i.e: getApplicationContext()) and activity context , also BroadcastReceiver context:

    All merits go to original author here for more info.

提交回复
热议问题