1. Go to http://developer.android.com/sdk/index.html#Other and download the recommended windows package. Other option is to download Android studio, but I am going to use Atom or Sublime text for editing and then just compile with cordova, so I am going to download only the minimum SDK. After you have downloaded, install it. Android SDK may take up to 40 gigabytes, so make sure you have enough disk space.
2. Go to https://nodejs.org/en/ and download either long term or latest features NodeJS and install it.
3. Then search for SDK manager.
- Android SDK tools
- Android SDK platform tools
- Android SDK Build tools
- Android 5.1.1 (API 22)
- Some extras if you want
Using real device on windows
1. First enable usb debugging from your Android device under developer options. (http://www.greenbot.com/article/2457986/how-to-enable-developer-options-on-your-android-phone-or-tablet.html)
2. Attach it to your phone. After that, right click your computer and select manage -> device manager
From device manager select adb device and update driver, you will find it from android SDK folder. (http://developer.android.com/tools/extras/oem-usb.html)
3. I am not sure if you need OEM driver, I installed it also. http://developer.android.com/tools/extras/oem-usb.html#Drivers
4. After this you should be able to use command adb devices
Signing APK files
To zipalign use similar command:
"F:\Android\build-tools\23.0.2\zipalign.exe" -v 4 android-release-unsigned.apk finalappname.apk