I'm developing an application that makes an intensive use of data connection in GPRS network. I'm currently using DatagramSocket and I have some questions with regarding to PDP context activation and network failures. In summary, I would like to know how to detect programmatically some scenarios and in which cases the datagram sockets become invalid and need to be recreated.
1 - Is it necessary to explicitly activate the PDP context? If not, what triggers this activation? How can we detect it programmatically? 2 - Once the PDP context is activated, it means the device has an IP address. If the network is not always-on, the PDP context will be deactivated after a period of data connection idleness. How is it possible to detect it? 3 - In case the device moves to a place without GPRS coverage, is the PDP context deactivated immediately? Is there a notification? 4 - In case the device moves to another area and a new IP is assigned to it, which notification can be captured? 5 - If device goes temporarily (a few seconds) to an out of coverage area and it comes back to a coverage area, is it possible to detect those events? 6 - Is is possible to configure a list of APN's in an Android device? Can the application choose the APN to be used? Since I don't have a hardware, I tried to use the NetworkStatus class and DDMS to simulate data connection down/up events in the Android Emulator, but I couldn't get any clue. The sockets work (send/receive datagrams with success) even when I change the data connection status to unregistered. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

