Now the startactivityforresult is called in the generated code