For some reasons, this ain't working:
wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
if(wifi.isWifiEnabled())
{
tvStatus.setText("You WiFi is enabled");
}
else
{
tvStatus.setText("You WiFi is disabled");
}
Why aint this working, am i missing something? And it compiles and everything but when i want to run it on my phone it gives me a force quit error