Your code is OK and it must work. It seems that your activites are not included in your AndroidManifest.xml.
If so, maybe you are actually launching your another activity, but you may have missed to put the right layout id in the setContentView function.