A very easy way to do this is to use the Java Timer class. The TimerTask can start every minute or two and perform an HTTP Get to check for commands from the server. Once the command has been found, you can create an Intent inside TimerTask and use startActivity or startService to launch your Android application.
source share