Recent

Author Topic: [HowTo] Android Development Environment on Linux (FPCUPdeluxe + LAMW)  (Read 30036 times)

WayneSherman

  • Full Member
  • ***
  • Posts: 119
Re: [HowTo] Android Development Environment on Linux (FPCUPdeluxe + LAMW)
« Reply #75 on: October 22, 2021, 04:22:38 pm »
The emulator start after run script
run on port 5556 is correct?

but lazarus after complier not install app on emulator
terminal windows show message error but close ealry

lazarus emulator window not show virtual machine create how image attachment

Are you compiling a 32-bit or 64-bit APK?  In my example, I used a 32-bit ARM emulator system image so I tested with a 32-bit APK.
For the emulator listening port, the terminal output says "Started GRPC server at 127.0.0.1:8554, security: Local"

On my test VM, I get the same "Android emulators" popup window only if I am not running the emulator already.  The "Refresh" and "AVD Manager" buttons don't do anything.
« Last Edit: October 22, 2021, 07:43:29 pm by WayneSherman »

loaded

  • Sr. Member
  • ****
  • Posts: 371
Re: [HowTo] Android Development Environment on Linux (FPCUPdeluxe + LAMW)
« Reply #76 on: October 22, 2021, 05:44:49 pm »
why are the controls not aligned as shown in the drawing?
A close example of what you want to do; https://cadplugin.com/other/AppLAMWProject1.rar
For more control you should use the layout, it may take some trial and error.
« Last Edit: October 22, 2021, 05:50:25 pm by loaded »
If Ide=Lazarus 2.0.10 32 Bit and Os=Win 10 Home 64 Bit then Get up and do something useful! Because God is the helper of those who start again;

laguna

  • Sr. Member
  • ****
  • Posts: 313
Re: [HowTo] Android Development Environment on Linux (FPCUPdeluxe + LAMW)
« Reply #77 on: October 22, 2021, 05:52:49 pm »
Ok Thank download run
« Last Edit: October 22, 2021, 05:56:45 pm by laguna »

jmpessoa

  • Hero Member
  • *****
  • Posts: 1978
Re: [HowTo] Android Development Environment on Linux (FPCUPdeluxe + LAMW)
« Reply #78 on: October 22, 2021, 07:07:12 pm »

Quote
why are the controls not aligned as shown in the drawing?

From here:

https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/LAMW_Getting_Started.txt

Quote
[FAQ 2]: [Thanks to Ahmad Bohloolbandi (a.k.a. @developing) ]

#Question: How do we can design a layout that shown same in real device?

[Answer]: You should use the component properties:

      "Anchor",
      "PosRelativeToParent",
      "PosRelativeToAnchor",
      "LayoutParamHeight",
      "LayoutParamWhidth"
         
Example:

1-Put a "jTextView" component on your AndroidModule form:

   Set "PosRelativeToParent"
      "rpCenterHorizontal" [True]
      "rpTop" [True]

2-Put a "jButton" component on AndroidModule form:

   Set "Anchor" to "jTextView" (Because you should set position relative with "jTextView")
   set "PosRelativeToAnchor"
      "raBelow" [True]

3-Put a "jEditText" component on form:

   Set "Anchor" to "jButton".
   Set "PosRelativeToAnchor"
      "raBelow" [True]

NOTE:    Anchor setting is most important section of this design,
   because your component position depends on this property.
   And for change width and/or height of each components you should
   change/configure "LayoutParamWhidth" and/or "LayoutParamHeight".
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

laguna

  • Sr. Member
  • ****
  • Posts: 313
Re: [HowTo] Android Development Environment on Linux (FPCUPdeluxe + LAMW)
« Reply #79 on: October 22, 2021, 09:01:32 pm »
Thanks

 

TinyPortal © 2005-2018