title: Android link to wireless & Network Settings
body: <p>Hi I'm making an App that checks internet connection, if it's not connected it goes to an activity that has an error message and a button that I want to link to the wireless and network settings. But I'm not sure how to do it, can anyone help me ?<br>
  Here's what I've got so far.</p>
  
  <pre><code>public class NetworkActivity extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.networkact);
          Button settings = (Button) findViewById(R.id.btn_settings);
          // Listening to button event
          settings.setOnClickListener(new View.OnClickListener() {
  
              public void onClick(View arg0) {
                  // Starting a new Intent
                  Intent gotoSettings = new Intent(getApplicationContext(),
                          HomeActivity.class);
                  startActivity(gotoSettings);
              }
          });
      }
  }
  </code></pre>
  
  <p>At the moment it goes to another activity but I want it to go to the wireless &amp; network settings. </p>