Have a look here: How to start your dialog application in hidden mode?

Cheers,

Laitinen