10-20-2010 11:11 AM
There is no way to programmatically retrieve the APN. If the user has configured the APN under Options, Advanced Options, TCP, then direct TCP connections will use this APN by default.
If you are looking to choose an appropriate transport route based on what type of connection is available, have a look here:
What Is - Network API alternative for legacy OS