Can't tell too much from "doesn't work" and "nothing happens".
Most likely, you are not providing any connection parameters on your URL. This works fine on the simulator, because the simulator pretends to have a BES connection by default. Once you move your code to a real device, on a real network, without a BES connection, it won't work 95% of this time.
You need to determine what type of network connection is available, then craft your connection parameters accordingly.
If you are not on a BES, and you do not have access to BIS, then your choices are probably Direct TCP, WAP, or WAP2.
See this KB article: Livelink - Redirection
..and this one: Livelink - Redirection
You might also try searching this forum, you will find many, many threads from folks who had the same issue.