Recent

Author Topic: App to Android - AndroidStudio-GUI, FPC-all but GUI  (Read 534 times)

roeug

  • Jr. Member
  • **
  • Posts: 65
    • http://roeug.50megs.com/
App to Android - AndroidStudio-GUI, FPC-all but GUI
« on: October 29, 2019, 04:49:37 pm »
The main idea was
1. To use Android Studio for all UI
2. To use FPC (CodeTyphon - had no time to SVN cross-compiler) for all logic/data manipulations - it is possible to create C (C-language) envelope for Pascal binary library (lib####.so file)

https://github.com/roeug/testjni

April 11, 2014, it was subj
"App to Android - Eclipse for GUI and Lazarus for everything but GUI (arm/x86)"

tr_escape

  • Sr. Member
  • ****
  • Posts: 402
  • sector name toys | respect to spectre
    • Github:
Re: App to Android - AndroidStudio-GUI, FPC-all but GUI
« Reply #1 on: October 29, 2019, 05:05:16 pm »
But there is no repo in github ?

roeug

  • Jr. Member
  • **
  • Posts: 65
    • http://roeug.50megs.com/
Re: App to Android - AndroidStudio-GUI, FPC-all but GUI
« Reply #2 on: November 08, 2019, 09:34:30 am »
Sorry,some problems with GitHub Console, fixed?
https://github.com/roeug/testjni

BeniBela

  • Hero Member
  • *****
  • Posts: 683
    • homepage
Re: App to Android - AndroidStudio-GUI, FPC-all but GUI
« Reply #3 on: November 08, 2019, 12:41:10 pm »
That is what I do:

https://github.com/benibela/videlibri/tree/master/android

but more direct.  all JNI in Pascal, without a C wrapper. And with a fpc svncross compiler, without CodeTyphon

roeug

  • Jr. Member
  • **
  • Posts: 65
    • http://roeug.50megs.com/
Re: App to Android - AndroidStudio-GUI, FPC-all but GUI
« Reply #4 on: November 09, 2019, 07:48:48 pm »
Thanks. Too complex for dummies as me - debian, shell scripts...I prefer to use IDE for mechanical tasks which oughtn't to be thought about :D. And, are you ready to 64bit  Google requirement? I've not yet. But think it may be solved with IDE as AS, and consider further Google tricks...

BeniBela

  • Hero Member
  • *****
  • Posts: 683
    • homepage
Re: App to Android - AndroidStudio-GUI, FPC-all but GUI
« Reply #5 on: November 11, 2019, 10:50:13 pm »
The shell scripts do various things. Most do not have anything to do with app compiling: checking if fpc is installed, checking if Lazarus is installed, downloading data from webservers, compiling the fpc cross compiler..

The actual compilation for the .so is one call to lazbuild. That's one click in Lazarus.

But you have to compile  for each platform separately, i.e. 4 times. 32-bit x86, 64-bit x86, 32-bit arm, 64-bit arm.


Might be easier to use the fpc jvm backend