you should switch screens correctly, see also
if it still does not work after fixing that, then one method to find out why you get a runtime error is to use logcat
EDIT: see also tip 1 here
Taifun