title: Enable internet connection - Android Wear
body: <p>I'm developing my first <code>android wear</code> application and I'm doing a request to an <code>api</code>, the problem is that I don't have internet connection. How can I enable the internet connection or something like that?</p>
  
  <p>so far what I have tried is enable the bluetooth connection but every time I click there I get the following error Unfortunately, settings has stopped.</p>
  
  <p><a href="https://i.stack.imgur.com/5Mp01.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5Mp01.png" alt="enter image description here"></a></p>
  
  <p>any idea how to fix it?</p>
  
  <p>Note: below is my virtual machine details:</p>
  
  <p><a href="https://i.stack.imgur.com/eZQQG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eZQQG.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/uw3G0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uw3G0.png" alt="enter image description here"></a></p>
  
  <p><strong>EDITED</strong>
  Also to make sure the internet connection is not working I have tried the code below:</p>
  
  <pre><code>ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
          NetworkInfo ni = cm.getActiveNetworkInfo();
          if (ni == null) {
              // There are no active networks.
              return false;
          } else
              return true;
  </code></pre>