title: Way to find if an Activity Exists in android
body: <p>I want to test if the Activity by name "test" exists or not in the appliaction. May be using Manifest file before calling startActivity or in its catch block for the following:  </p>
  
  <p><a href="https://stackoverflow.com/questions/10120655/starting-an-activity-with-intent-and-setclassname">Starting an Activity with Intent and SetClassName</a>  </p>
  
  <p>So say:</p>
  
  <pre><code>if(test.exists){  
      Activity is registered and start it    
  }  
  else{  
      create Activity and add it in manifset programmatically, as this would be a dynamic Activity    
  }
  </code></pre>