ActivityStarter error

Hi,
why the following block works only in test while when I compile the apk file and install the app and click on install it does not work and does not even display an error?