In my android app, I wanted to start an activity \'B\' from initial activity \'A\'. I have created classes for both of these. However when using following code to start B, I
First change the xml, mark your second activity as DEFAULT
Now you can initiate this activity using StartActivity method.