title: Go to activity with the name of returned result?
body: <p>I want to go to an activity with the name that returned from resultPhone, for example: the current phone name is GalaxyS3, then I want it to go to GalaxyS3.class. How can I do that?</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      String[] supportedPhone = getResources().getStringArray(R.array.supported_phone);
      String[] supportedVersion = getResources().getStringArray(R.array.supported_version);
      String currentPhone = android.os.Build.MODEL;
      String currentVersion = android.os.Build.VERSION.RELEASE;
  
      for(String cP : supportedPhone) {
          String resultPhone = cP;
          for(String cV : supportedVersion) {
              String resultVersion = cV;
              if ((currentPhone.equalsIgnoreCase(resultPhone)) &amp;&amp; (currentVersion.equalsIgnoreCase(resultVersion))) {
                  Intent gotoPhoneDetail = new Intent(this, "resultPhone" + ".class");
                  startActivity(gotoPhoneDetail);
                  // how can i make this go to the activity with the name return from resultPhone?
              } else {
                  setContentView(R.layout.phone_checker); 
              }
          }
      }
  }
  </code></pre>