Recent

Author Topic: Lazarus + lamw + android + pipes  (Read 2567 times)

Karamultuk

  • New Member
  • *
  • Posts: 10
Lazarus + lamw + android + pipes
« on: July 02, 2018, 12:22:28 pm »
Good afternoon.
Can you please tell me how to transfer parameters to the application on Android and get the result? Tried through tproces and pipes, but nothing is returned.
Can anyone come across this problem and find a solution.
Thank you
I will specify. There is a jar file in which there is no activation. There are only classes.dex. it has a method designer. The question is how to call this constructor, pass parameters to it and get output data?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Lazarus + lamw + android + pipes
« Reply #1 on: July 02, 2018, 01:13:43 pm »
Hi, Karamultuk!

You will need some knowledge about JNI-Java Native Interface and Pascal interaction.

You can try learn from LAMW  unit "Laz_And_jni_Controls.pas"  [folder "android_bridges"]

and demo "AppTest2"   - the jni coding by the hard way!
« Last Edit: July 02, 2018, 01:15:58 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Karamultuk

  • New Member
  • *
  • Posts: 10
Re: Lazarus + lamw + android + pipes
« Reply #2 on: July 02, 2018, 08:59:24 pm »
Good afternoon.
Thanks for the advice. I looked at the demo example and the same unit that you porekomedovali. But either I did not understand anything, or it's not what I need. I can just tell you what I need and you, maybe you can give an example. This will help me a lot.

There is a file settings.jar along the path / system / framework /
in it I need to pass the command "list system" and get the information that this jar will return to me. In the terminal, if you run this command (settings list system), everything returns fine.

Help me please...

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Lazarus + lamw + android + pipes
« Reply #3 on: July 03, 2018, 01:01:05 am »

Quote
pass parameters to it and get output data?

Maybe we can do some "workaround".  What system\android information  will you need?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Karamultuk

  • New Member
  • *
  • Posts: 10
Re: Lazarus + lamw + android + pipes
« Reply #4 on: July 03, 2018, 07:01:37 am »
Good afternoon.I need to get the keys of the internal storage android. division system. Through the terminal they are obtained by the command "settings list system"

 

TinyPortal © 2005-2018