Skip to content

Instantly share code, notes, and snippets.

@jimmckeeth
Last active May 3, 2024 23:58
Show Gist options
  • Save jimmckeeth/3a453ccdb1a387644ca137b499d01879 to your computer and use it in GitHub Desktop.
Save jimmckeeth/3a453ccdb1a387644ca137b499d01879 to your computer and use it in GitHub Desktop.
Manual ADB Deployment from RAD Studio Tools Menu
@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