Android: Activity establish network connection
<p>I have an Activity which looks up data from the web in its onCreate method. The Activity is activated by the user hitting a notification. So it is a common problem that the user will quickly turn on their phone, unlock it, slide open notifications, tap the notification, and the Activity will activate before the phone is done connecting to internet.</p>

<p>I do have a friendly AlertDialog that pops up informing the user that the data couldn't be received and to try again when the network is connected; but <strong>is there a way for the Activity to actively tell the phone to connect and detect that a connection is being made and then wait for the connection to establish, and then load its data successfully</strong>?</p>
