Recent

Author Topic: Please a recent tutorial for android  (Read 596 times)

iXaw

  • New Member
  • *
  • Posts: 13
Please a recent tutorial for android
« on: June 11, 2019, 03:08:27 pm »
Hello,


I would like to use Lazarus for an android project. Lazarus is installed here (i.e. in development company) on various OS: Windows, Ubuntu and Mojave.
Browsing the forum, I found this article that dates a little : http://wiki.lazarus.freepascal.org/Android_tutorial

Could you tell me first if any of the OS is easier to use to use Lazarus to build an android project ? Ubuntu ?
Then where can I find a step-by-step installation method to configure Lazaraus  to build an android project  ?

Thanks. Regards. xW.



« Last Edit: June 11, 2019, 03:10:10 pm by iXaw »

Manlio

  • New Member
  • *
  • Posts: 44
  • Pascal dev
Re: Please a recent tutorial for android
« Reply #1 on: June 11, 2019, 05:50:31 pm »
I can tell you that using Windows, after an initial learning period, I can easily make Android apps, using LAMW.

I initially installed everything following the instructions here: (see "how to install on Windows")

http://wiki.lazarus.freepascal.org/LAMW

After that, connect an Android phone to the PC, open some of the demo projects inside LAMW, and run them on your phone, to see how it works. (Of course, the phone must be in Developer Mode). I suggest you don't use Android emulators, but test it on a real phone.

Now there's also a new system, called LAMW Manager, that should be doing the whole installation for you automatically. I didn't test it because i already had everything installed, but apparently it works well. See here:

https://forum.lazarus.freepascal.org/index.php/topic,45361.0.html

If you do the installation and get stuck at some point, ask here and someone will probably know what to do.

All the best

M

manlio mazzon gmail

Handoko

  • Hero Member
  • *****
  • Posts: 3121
  • My goal: build my own game engine using Lazarus
Re: Please a recent tutorial for android
« Reply #2 on: June 11, 2019, 06:09:10 pm »
Could you tell me first if any of the OS is easier to use to use Lazarus to build an android project ?

I recommend you to use Windows. Reasons:

Ubuntu and its variants have some issues with Lazarus installation, you can search the forum for more detail. On my tests on Ubuntu 19.04 + Lazarus 2.0.2, the problems seem have been solved. But I can't be sure to tell you will it happen or not on the future releases.

LazToApk can only run on Windows (if I remember correctly). LazToApk is not required for building android app, but for Lazarus-Android beginners it can make you work easier.

I personally use Ubuntu Mate. It is not perfect, it has many issues but I'm okay with it. I'm not a pro in Lazarus-Android programming, those just for your consideration. You still need to hear from the others who are more experience in Lazarus-Android programming.
« Last Edit: June 11, 2019, 06:30:45 pm by Handoko »

jmpessoa

  • Hero Member
  • *****
  • Posts: 1432
Re: Please a recent tutorial for android
« Reply #3 on: June 11, 2019, 10:32:49 pm »

An automatic way of achieving a fully functional Lazarus environment
is described here in versions for linux and windows ...

https://forum.lazarus.freepascal.org/index.php/topic,45361.0.html

[In Windows maybe you
you will have to disable the anti-virus and even the system "defender" ... to run the installation script with autonomy ...]

On the other hand,  You cant try the "LAMW_Getting_Started.txt"
available in:

https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/LAMW%20Getting%20Started.txt
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

totya

  • Hero Member
  • *****
  • Posts: 577
Re: Please a recent tutorial for android
« Reply #4 on: June 11, 2019, 10:40:42 pm »
Hi, what is the oldest android version suported by LAMW?

jmpessoa

  • Hero Member
  • *****
  • Posts: 1432
Re: Please a recent tutorial for android
« Reply #5 on: June 11, 2019, 10:57:45 pm »

Android 4.0 (Api 14)
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

totya

  • Hero Member
  • *****
  • Posts: 577
Re: Please a recent tutorial for android
« Reply #6 on: June 12, 2019, 06:39:11 pm »
Android 4.0 (Api 14)

Thanks for the info!