【发布时间】:2015-06-12 21:22:53
【问题描述】:
我的误会还在继续……
谁能引用正确使用get*Context() 的参考资料?我收到关于使用getBaseContext()、getApplicationContext() 和getContext() 的相互矛盾的建议,我的理解是使用this 对get*Context() 来说是一种方便。我想更具体地研究一下 Dalvik 打算使用它的对象和访问方法。
我的代码审查将我对getBaseContext() 的调用更改为getApplicationContext(),现在我看到了使用它的建议。
【问题讨论】:
标签: android this android-context