title: Restart activity after user turn wifi on
body: <p>I override <em>onReceivedError</em> to create a dialog to let the user turn on the wifi if it is off.</p>
  
  <p>My code there is something like:</p>
  
  <pre><code>if (! mWifi.isConnected() ) {
  
    Intent i = new Intent(Settings.ACTION_WIFI_SETTINGS);
    startActivity(i);
  }
  </code></pre>
  
  <p>This open the wifi settings, and after the user turn on wifi and hit back....
  What i need to add to restart the main activity?</p>