User Activity

I have 2 application codes and 1 bootloader code. The bootloader should jump to the one of the 2 application codes.How do I implement the bootloader code and configure the layout of the application codes?