在android中,以下代码之间是否有任何区别?
请详细解释。示例代码也表示赞赏。
提前致谢。
答案 0 :(得分:1)
1> new Intent(this, MyOtherActivity.class); here this means the context of your current
activity
3> new Intent(getApplicationContext(), MyOtherActivity.class); here getApplicationContext() means the context of your application.