-
-
Save TikoTako/5486eec29dc5bf476d2106f24fc0605c to your computer and use it in GitHub Desktop.
Manual ADB Deployment from RAD Studio Tools Menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM Call from Delphi/RAD Studio IDE with the following parameters | |
REM $PATH($EXENAME) $NAMEONLY($PROJECT) | |
echo ============================================================= | |
echo Be sure you Compile Android 64 and Deploy [Shift-Ctrl-Alt-F9] | |
echo. | |
echo Also set <application android:resizeableActivity="true"> in AndroidManifest.template.xml | |
echo ============================================================= | |
echo Path: %1 | |
set apk=%2\bin\%2.apk | |
echo APK: %apk% | |
cd %1 | |
cd %2\bin | |
echo. | |
dir %2.apk | |
echo. | |
if exist %2.apk ( | |
adb install -r --no-streaming %2.apk | |
adb shell am start -n com.embarcadero.%2/com.embarcadero.firemonkey.FMXNativeActivity | |
echo You can close this window.... | |
timeout /t 10 | |
) else ( | |
echo ============================================================= | |
echo Your APK file is missing! | |
echo Be sure you Compile Android 64 and Deploy [Shift-Ctrl-Alt-F9] | |
echo ============================================================= | |
pause | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment