Recent

Author Topic: LAMW - ide problem  (Read 1045 times)

benohb

  • Full Member
  • ***
  • Posts: 218
LAMW - ide problem
« on: April 19, 2022, 11:10:45 am »


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][+][-]
  1. ../LAMW/lazandroidmodulewizard/ide_tools/apkbuild.pas
  2.  
  3.  
  4. 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

  • Hero Member
  • *****
  • Posts: 2330
Re: LAMW - ide problem
« Reply #1 on: April 21, 2022, 09:38:25 pm »
Quote
I 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....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

benohb

  • Full Member
  • ***
  • Posts: 218
Re: LAMW - ide problem
« Reply #2 on: April 22, 2022, 03:54:17 am »

Thanks jmpessoa
Quote
Well, at the moment you need first start an ADB
I 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

  • Hero Member
  • *****
  • Posts: 2330
Re: LAMW - ide problem
« Reply #3 on: April 22, 2022, 04:35:42 am »
Quote
I mean "RunExternalTool(Tool)"  It does not have  [poWaitOnExit] option


Please, can you can suggest an  improved (fixed) code?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018