Generating activities Dynamically
<p>I have an application in which according to the user input , i have to display activities..
Plz specify how can i display activities dynamically . 
Already keeping the maximum no of activities and displaying it them using intent is definitely  not a viable option..</p>

<p>How can i achieve this?z</p>

<pre><code>public class Progress extends Activity implements OnClickListener{
Button b;

@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.progress);
    b = (Button) findViewById(R.id.b);
    b.setOnClickListener(this);
}

@Override
public void onClick(View view) {
// TODO Auto-generated method stub

switch(view.getId()){

 case R.id.b:

 String numberPos = et.getText.toString();
 int n = Integer.parseInt(numberPos);


  break;

}

}
</code></pre>
