How do I wait during application startup until WIFI connects?
<p>Like many apps my app depends on WIFI and Http Connection to operate.  What I am not clear on is how I can time a wait until WIFI is enabled AND device is attached to WIFI network is.  What is the best way to delay on application startup long enough for this to happen? during this time I would for example keep buttons deactivated.  Also is there any way to make the device attempt to connect to its preferred network?  Thanks</p>
