主权项 |
1. A method for managing connections to networks for a communication device, comprising:
storing, in memory of the communication device, a list of profiles of network connections for the communication device, each profile in the list of profiles representing a network connection, wherein a first section of the list of profiles includes a plurality of active profiles, each of the plurality of active profiles representing an active network connection to be scanned by the communication device; scanning, at the communication device, for active network connections included in the first section of the list of profiles; during the scanning, detecting, at the communication device, a new network connection for the communication device to an available network; in response to the detecting, determining whether the new network connection is in the list of profiles; absent determining that the new network connection is in the list of profiles: establishing a temporary profile associated with the new network connection; establishing a set of activation conditions for the temporary profile; and adding the temporary profile to the first section of the list of profiles; periodically determining, at the communication device, whether the new network connection associated with the temporary profile is active based on the set of activation conditions; and, absent determining, at the communication device, that the new network connection associated with the temporary profile is active based on the set of activation conditions, removing the temporary profile from the first section of the list of profiles. |