Yes -- BlackBerry's transport implements least cost routing, so that when USB-cradled it will direct all socket and HTTP connections through the desktop automatically (and transparently to your program), and when disconnected it will instead go through the wireless network. In JDK 4.1, RIM added an API call so that you can detect this as well.
eeksock
|