Use CoverageInfo to detect the type of connection that is available.
The APN info can be specified in the URL for Direct TCP connections; the WAP gateway info can be specified in the URL for WAP connections.
You might also look at WAP2 (although it is not supported on all carriers). With WAP2, you can retrieve the parameters from the servicebook.
See this article: Livelink - Redirection