Register event router when launch application by application ID.

Hi guys, it's quite small, please take a look.