title: How is an Android activity instantiated (using reflection)?
body: <p>Got asked this today in an Android interview. I answered the usual, you know, intent + startActivity, etc. Interviewer then asked more pointedly,</p>
  
  <blockquote>
    <p>"Yes, but where is it actually <em>instantiated</em>? You don't call new
    Activity anywhere".</p>
  </blockquote>
  
  <p>Which now that I think about it, I don't really know. He hinted that it used Java reflection, but I dont have a lot of experience with that, and I've only used it to access some variables in the Android SDK.</p>
  
  <p>Can someone explain how Activities are instantiated using reflection, and <em>why</em>? Bonus points for insight into what value the interviewer saw in knowing this.</p>