@echo off
set PAUSE_ERRORS=1
call SetupSDK.bat

:: AIR runtime installer
set AIR_INSTALLER=%FLEX_SDK%\runtimes\air\android\device\runtime.apk

:: Install
echo Installing AIR runtime on current device...
echo.
adb install -r "%AIR_INSTALLER%"
echo.
if errorlevel 1 goto failed
goto end

:failed
echo Troubleshooting:
echo - one, and only one, Android device should be connected
echo - verify 'SetupSDK.bat'
echo.
goto end

:end
pause