Recent

Author Topic: Making apps for Android  (Read 5015 times)

moskalenco_a

  • New Member
  • *
  • Posts: 19
Making apps for Android
« on: April 18, 2015, 09:55:22 pm »
Hi all.I read that FPC can make programs for Android. But reading manuals/docs I didn't understand nothing. Has somebody ever created apps for Android on FPC?And what is the simplest way to do it?

Derit

  • Jr. Member
  • **
  • Posts: 55
Re: Making apps for Android
« Reply #1 on: April 18, 2015, 11:20:27 pm »
hi you can see demonstration make android program by lazarus here
http://y2u.be/2ctkxVfPm8Q
Lazarus Trunk/FPC Trunk/2.6.2/2.6.4

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Making apps for Android
« Reply #2 on: April 19, 2015, 05:05:09 pm »
But reading manuals/docs I didn't understand nothing.
It's hard for you then. There are certain prebuilt packages (like Laz4Android or something) but I don't use it and still, you have to mess with its documentation or you'll get lost very soon. So improve your reading comprehension skill first, along with the required technical terms.

moskalenco_a

  • New Member
  • *
  • Posts: 19
Re: Making apps for Android
« Reply #3 on: April 20, 2015, 01:30:16 pm »
I can read docs:every day I read much information about FPC in docs and it's very interesting for me(I see new features). I tried to do like this.
http://forum.lazarus.freepascal.org/index.php/topic,22414.0.html
But this article didn't help me. OK. Another question. How to compile code to bytecode?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Making apps for Android
« Reply #4 on: April 20, 2015, 01:36:29 pm »
I tried to do like this.
http://forum.lazarus.freepascal.org/index.php/topic,22414.0.html
But this article didn't help me.
If you can't follow just-do-what-it-says post like that, as I said, it's hard for you to even start.
Another question. How to compile code to bytecode?
What bytecode? FPC doesn't compile to bytecode except when targetting JVM (and LLVM if it's done some time in the future).

moskalenco_a

  • New Member
  • *
  • Posts: 19
Re: Making apps for Android
« Reply #5 on: April 20, 2015, 01:40:48 pm »
Quote
If you can't follow just-do-what-it-says post like that, as I said, it's hard for you to even start.
But I made all like was written in that article...

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Making apps for Android
« Reply #6 on: April 20, 2015, 05:08:43 pm »
Yes, things are difficult for new Free Pascal Lazarus users.  I am working on several things to try and simplify things:

Small virtual machine to cross compile FPC
http://forum.lazarus.freepascal.org/index.php/topic,26315.0.html

I also recommend taking a look at Code Typhon
http://www.pilotlogic.com/

Hopefully things can be made more simple ASAP!   :)
Regards,
Paul Breneman
www.ControlPascal.com

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Making apps for Android
« Reply #7 on: April 20, 2015, 06:12:57 pm »
@FPC,

You can try Laz4Android [just Lazarus[win] with cross-compile  installed [arm/x86]]

   http://sourceforge.net/projects/laz4android/files/?source=navbar
   Last update:2015-02-25
   FPC: 3.1.1 trunk svn 29987 win32/arm-android/i386-android/jvm-android
   Lazarus:1.5 trunk svn 47987
   Android NDK: r10c (arm-linux-androideabi-4.6 + x86-4.6)
   :To Install [*.7z], please, read the "Laz4Android_readme.txt"

and if you like RAD then Install:

 "Lamw/Lazarus Android Module Wizard" [win/linux]:  "Form Designer and Components development model!" : More than 50 [natives] components ready to use and 36 Apps demos...

ref.:
https://github.com/jmpessoa/lazandroidmodulewizard
http://forum.lazarus.freepascal.org/index.php/topic,21919.375.html


Thanks to All!
« Last Edit: April 20, 2015, 07:11:03 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Making apps for Android
« Reply #8 on: April 20, 2015, 07:16:11 pm »
@jmpessoa

I'm glad you mentioned Laz4Android.  If we can get that working in a small VM I'd like to help promote it.  If you (or anyone) can add a few simple steps to my small VM notes that would be great!
Regards,
Paul Breneman
www.ControlPascal.com

 

TinyPortal © 2005-2018