how turn on WIFI or Mobile Data with SDK android

view full story

http://stackoverflow.com – My phone is with too many Pattern Lock, asking me for email and password, the problem is that internet is off. Surfing by the internet i found something about Android SDK, i think i am a little into it, i already install the USB drivers, the GOOGLE API for 4.0.3 and SDK tools & plataform tools etc etc. Already get it the cmd with plataform tools. But now idk how the use the command for exemple "android.permission.CHANGE_WIFI_STATE" and "WifiManager wifiManager = (WifiManager)getBaseContext().getSystemService(Context.WIFI_SERVICE); wifiManager.setWifiEnabled(enabled);" I am a big noob wh (HowTos)