title: converting a string to a class
body: <p>I'm trying to move between one Activity to another based upon some user input.</p>
  
  <p>I'm trying to use:</p>
  
  <pre><code>String myClass = "some_user_input.class"
  Intent myIntent = new Intent(getApplicationContext(), myClass);
  startActivity(myIntent);
  </code></pre>
  
  <p>...to move from one activity to another.</p>
  
  <p>I can do this ok where I reference my new activity directly in the hard code and don't try to compile it from text, (i.e. classA.class), however I want to be able to build my Intent by passing it some string compiled by the user.</p>
  
  <p>For example if the user inputs B in an edittext, I want to go to <code>classB.class</code>
  If the user inputs Z, I want to go to <code>classZ.class</code>.</p>
  
  <p>Is there any way I can compile the class I want to go to using strings which I then convert to a class?</p>
  
  <p>Thanks in advance!</p>