I'm developing my first android wear
application and I'm doing a request to an api
, the problem is that I don't have internet connection. How can I enable the internet connection or something like that?
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.
any idea how to fix it?
Note: below is my virtual machine details:
EDITED Also to make sure the internet connection is not working I have tried the code below:
ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo ni = cm.getActiveNetworkInfo();
if (ni == null) {
// There are no active networks.
return false;
} else
return true;