android studio setting string to intent :      String c="MainActivty.class";       
     Intent ints =new Intent(getApplication(),c);
     startActivity(ints);

How can i do this on the click of the button i.e specify c to an Intent