calling startActivityForResult from inner activity

view story

http://stackoverflow.com – I have an activity with the following inner activity public class Closer extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { doMyWork(); } public void gotoInfo() { Intent intent = new Intent(this, CatActivity.class); startActivityForResult(intent, 1); } } but when I run the code, I get a NPE rooted at the line startActivityForResult(intent, 1). How would I do this successfu (HowTos)