How is an Android activity instantiated (using reflection)?

前端 未结 4 528
时光说笑
时光说笑 2020-12-24 03:41

Got asked this today in an Android interview. I answered the usual, you know, intent + startActivity, etc. Interviewer then asked more pointedly,

\"Ye

4条回答
  •  半阙折子戏
    2020-12-24 04:08

    As long as you are not in an interview for an Android system developer (kernel hacker, ...) the answer is simply: That is an implementation detail of the Android framework a normal Android developer should not need to care about because of the abstraction and layer principle and it can be looked up in the rare case you would really need to know it.

提交回复
热议问题