LAMW - ide problem lazarus / 43-Android ---------------------------------------------------------------------- benohb · 2022-04-19 09:10 I using linux for dev and Real android device (adb) for debug I don't know if there is a problem with Windows In short: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i ../LAMW/laz androidmodulewizard/ide_tools/apkbuild.pas  RunExternalTool(Tool) In the code, you call external commands several times for build and run apk .. The problem is that the first command is not completed... and it moves to the second command This function does not contain  ( waiting until the completion) when executing an external program I mean before IDE create APK package  The IDE will call  ADB to install the apk  that doesn't exist ---------------------------------------------------------------------- jmpessoa · 2022-04-21 19:38 QuoteI mean before IDE create APK package  The IDE will call  ADB to install the apk  that doesn't exist Well, at the moment you need first start an ADB (or plug a real device) before run/install an apk.... ---------------------------------------------------------------------- benohb · 2022-04-22 01:54 Thanks jmpessoa QuoteWell, at the moment you need first start an ADBI do that !! I mean "RunExternalTool(Tool)"  It does not have  [poWaitOnExit] option "ADB install"  will Run before the (gradle / ant)  finishes building the apk package ---------------------------------------------------------------------- jmpessoa · 2022-04-22 02:35 QuoteI mean "RunExternalTool(Tool)"  It does not have  [poWaitOnExit] option Please, can you can suggest an  improved (fixed) code?