Recent

Author Topic: Updated: my tutorial about Lazarus and Android V4  (Read 37873 times)

DelphiFreak

  • Full Member
  • ***
  • Posts: 246
    • Fresh sound.
Updated: my tutorial about Lazarus and Android V4
« on: September 11, 2013, 12:34:31 am »
Hi,

I have updated my tutorial and laztoapk to version 0.9.0.24
Files and sources are available at sourceforge.net.

http://sourceforge.net/projects/laztoapk/files/?source=navbar

Sam

« Last Edit: April 13, 2014, 09:49:10 am by DelphiFreak »
Linux Mint 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

jmpessoa

  • Hero Member
  • *****
  • Posts: 1474
Re: my tutorial about Lazarus and Android
« Reply #1 on: September 11, 2013, 01:03:02 am »
Very good and useful work!

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

exdatis

  • Hero Member
  • *****
  • Posts: 668
    • exdatis
Re: my tutorial about Lazarus and Android
« Reply #2 on: September 11, 2013, 07:58:20 am »
Thank you very much!

tfk

  • New member
  • *
  • Posts: 8
Re: my tutorial about Lazarus and Android
« Reply #3 on: September 11, 2013, 09:36:58 am »
Nice one! Thanks!

TFK

picstart

  • Full Member
  • ***
  • Posts: 236
Re: my tutorial about Lazarus and Android
« Reply #4 on: September 11, 2013, 10:06:41 am »
From the first sentence
"After it took me xx weeks to get a working Android application with Lazarus, it is time to write a little tutorial".
Those who had the time and the perseverance to make this work have shed light on the difficulty involved.
The tablet  and cell phone app is the future. The desk top PC will eventually go the way of the typewriter that was replaced by word processing and laser printing. Lazarus to have a future  needs to be in this tablet environment. Many myself included just gave up on Lazarus for tablet apps. Delphi and later Lazarus were designed to be convenient for generating desktop apps. Ease of use was a priority. Some coders are dismissive of ease of use needs and often take pride in their ability to overcome obtuse coding situations. This tutorial might prevent more people from assuming Lazarus as DOA  for tablet apps.
Good work.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: my tutorial about Lazarus and Android
« Reply #5 on: September 11, 2013, 12:18:58 pm »
Given the many positive reaction, it may be a good idea to put up the tutorial on the wiki so it can more easily be found, updated etc.

Thanks,
BigChimp
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

joseywales72

  • New Member
  • *
  • Posts: 20
Re: my tutorial about Lazarus and Android
« Reply #6 on: September 11, 2013, 12:42:55 pm »
Very nice. Thank you. Btw, it seems that nobody knows the answers you had asked at the bottom of the tutorial.
I'll try to follow your steps on Linux. If I succeed, I'll let you know.
Anil

Edit. The link for laztoapk seems broken.
« Last Edit: September 11, 2013, 01:00:28 pm by joseywales72 »

Mr_X

  • Newbie
  • Posts: 1
Re: my tutorial about Lazarus and Android
« Reply #7 on: September 11, 2013, 03:17:19 pm »
Uauu! you r the KING!! It is working!!!
You stop my few weeks suffering  :D

p.s.: i made apk with enclosed .bat files, 'cause link for laztoapk is broken

zariq

  • Full Member
  • ***
  • Posts: 107
Re: my tutorial about Lazarus and Android
« Reply #8 on: September 11, 2013, 05:42:46 pm »
I hope it encourages more people to try it. Just a small note about java, it doesn't need to be installed in any particular location.

api14 and over doesn't work, so could just install api 8 and see how it goes. Arm system image needed for emulator on api 14 and above.

DelphiFreak

  • Full Member
  • ***
  • Posts: 246
    • Fresh sound.
Re: my tutorial about Lazarus and Android
« Reply #9 on: September 11, 2013, 06:44:11 pm »
Hi,

it looks like dropbox has currently a problem.

https://dl.dropboxusercontent.com/u/3753548/laztoapk_source_and_exe_alpha_0_12.7z

I would like to extend laztoapk also for linux. But my skills for the script-files on linux are not good enough.

The project is at sourceforge: http://sourceforge.net/projects/laztoapk/
Patches are welcome.  :D

Sam
Linux Mint 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

laguna

  • Sr. Member
  • ****
  • Posts: 274
Re: my tutorial about Lazarus and Android
« Reply #10 on: September 12, 2013, 06:32:58 pm »
thanks, thanks, thanks.

Please, post sampler to use SQLITE.

Thanks.
very good.

jmpessoa

  • Hero Member
  • *****
  • Posts: 1474
Re: my tutorial about Lazarus and Android
« Reply #11 on: September 12, 2013, 11:48:40 pm »
From TrueTom Laz4Android Package (laz4android1.1-41139 - FPC 2.7.1)
(just win32)....

https://skydrive.live.com/?cid=89ae6b50650182c6&id=89AE6B50650182C6%21149

There is a SQLIte use example:

C:\laz4android\examples\androidlcl

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

laguna

  • Sr. Member
  • ****
  • Posts: 274
Re: my tutorial about Lazarus and Android
« Reply #12 on: September 13, 2013, 09:52:06 am »
Please, this error
E:\Android\laz4android\fpc\2.7.1\bin\i386-win32\arm-linux-androideabi-ld.exe: cannot find crtbegin_so.o

Thanks.

jmpessoa

  • Hero Member
  • *****
  • Posts: 1474
Re: my tutorial about Lazarus and Android
« Reply #13 on: September 13, 2013, 01:02:35 pm »
Hi!

1: You need NDK 7 ...

2. Configure:

Project -> Project Options -> Compiler Options -> Paths -> Libraries(-Fl)

on my system (just example...):

..\..\..\adt32\ndk7\platforms\android-8\arch-arm\usr\lib;
..\..\..\adt32\ndk7\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\lib\gcc\arm-linux-androideabi\4.4.3

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

laguna

  • Sr. Member
  • ****
  • Posts: 274
Re: my tutorial about Lazarus and Android
« Reply #14 on: September 13, 2013, 03:40:13 pm »
okay, I understood.

Replace with this:
..\ndk\platforms\android-8\arch-arm\usr\lib
..\ndk\toolchains\x86-4.4.3\prebuilt\windows\lib\gcc\i686-android-linux\4.4.3

work very good.

how you can implement Google-AdMob

Thanks.