Recent

Author Topic: [Solved] [LAMW] How can Pascal Functions be used in Android Studio?  (Read 3218 times)

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: [LAMW] How can Pascal Functions be used in Android Studio?
« Reply #15 on: February 05, 2021, 05:17:51 pm »

@yuriy_sydorov
Quote
Just use the pas2jni utility.

Can you post a simple [but functional]  example?
Using Android Studio or LAMW]
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

loaded

  • Hero Member
  • *****
  • Posts: 825
Re: [LAMW] How can Pascal Functions be used in Android Studio?
« Reply #16 on: February 05, 2021, 09:51:47 pm »
Thanks for the answer yuriy_sydorov

Just use the pas2jni utility.
https://wiki.freepascal.org/pas2jni

When the goal is to perform the desired action, the solution should be the shortest path. I tried pas2jni and its use seems to be detailed.
No hard work, things have gotten much easier now at LAMW.

I also prepared a video about the use of the .so file I created with LAMW in a project created from scratch in Android Studio and published it on youtube.
https://youtu.be/SCAOeAN3eU4
Let's put it here, maybe it will help someone.

I performed the transaction I wanted with your support.
Thank you very, very much. Regards.


Check out  loaded on Strava
https://www.strava.com/athletes/109391137

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: [Solved] [LAMW] How can Pascal Functions be used in Android Studio?
« Reply #17 on: February 05, 2021, 10:39:11 pm »
Quote
I also prepared a video about the use of the .so file I created with LAMW in a project created from scratch in Android Studio and published it on youtube.
https://youtu.be/SCAOeAN3eU4
Let's put it here, maybe it will help someone.

Good Video!

Alternatively you can open the LAMW project using "Android Studio"

and continue your development....

ref.

https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/docs/How_to_open_LAMW_project_with_AndroidStudio.txt

Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

loaded

  • Hero Member
  • *****
  • Posts: 825
Re: [Solved] [LAMW] How can Pascal Functions be used in Android Studio?
« Reply #18 on: February 06, 2021, 07:37:05 am »
I also examined that document. Health to your hands. Yes, LAMW projects are now very easy to use Androd Studio (thanks to you), you just need to do import projects.
In fact, this convenience is thanks to your efforts.That you are very valuable and essential people, I understand.
But in a project created and used in android studio, I just tried to explain the .so file, how to include and use it in the project. Regards.
Check out  loaded on Strava
https://www.strava.com/athletes/109391137

 

TinyPortal © 2005-2018