Difference between getContext() , getApplicationContext() , getBaseContext() and “this”

前端 未结 8 1914
臣服心动
臣服心动 2020-11-22 02:15

What is the difference between getContext() , getApplicationContext() , getBaseContext() , and \"this\"?

Though

8条回答
  •  时光说笑
    2020-11-22 02:17

    From this docs

    I understood that you should use:

    Try using the context-application instead of a context-activity

提交回复
热议问题