× CodeTyphon Cross-Build Development, discussions and problems

Question new components for android

  • Ahmad
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
5 years 7 months ago #6527 by Ahmad
new components for android was created by Ahmad
Hi all

Can you add LazAndriodModuleWizard to Code Typhon?
This is "A wizard for create JNI Android loadable module (.so) in Free Pascal using DataModules "
for more detail here
and a pic from component palette here
and relative topic link in lazarus here
The following user(s) said Thank You: frederico augusto marques, Leslie

Please Log in or Create an account to join the conversation.

  • frederico augusto marques
  • frederico augusto marques's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
5 years 7 months ago #6528 by frederico augusto marques
Replied by frederico augusto marques on topic new components for android
It will be great ! :)

Please Log in or Create an account to join the conversation.

  • frederico augusto marques
  • frederico augusto marques's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
5 years 7 months ago #6529 by frederico augusto marques
Replied by frederico augusto marques on topic new components for android
Sternas, I think it should be a great add on for CodeTyphon. Please , consider about it.

Please Log in or Create an account to join the conversation.

  • Ahmad
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
5 years 5 months ago - 5 years 5 months ago #6800 by Ahmad
Replied by Ahmad on topic new components for android
Hi all
How can I use this component in typhon?

Here is a help to install this component on Lazarus and use with laz4android, but I'm use Typhon.
I follow this tutorial but cannot compile any demos.
Because return this error:




Compile Project, OS: android, CPU: arm, Target: C:\lazandroidmodulewizard-master\demos\Eclipse\AppBroadcastReceiverDemo1\libs\armeabi\libcontrols.so: Exit code 1, Errors: 1, Hints: 8
unit1.pas(21,62) Hint: Parameter "intent" not used
unit1.pas(9,31) Hint: Unit "And_jni_Bridge" not used in unit1
unit1.pas(10,5) Hint: Unit "Laz_And_Controls_Events" not used in unit1
controls.lpr(477,37) Hint: Parameter "PEnv" not used
controls.lpr(477,52) Hint: Parameter "this" not used
controls.lpr(477,67) Hint: Parameter "pasobj" not used
controls.lpr(745,34) Hint: Parameter "reserved" not used
controls.lpr(761,37) Hint: Parameter "reserved" not used
C:\codetyphon\fpc\fpc32\bin\i386-win32\arm-linux-androideabi-ld.bfd.exe: cannot find crtbegin_so.o
C:\codetyphon\fpc\fpc32\bin\i386-win32\arm-linux-androideabi-ld.bfd.exe: cannot find -ljnigraphics
C:\codetyphon\fpc\fpc32\bin\i386-win32\arm-linux-androideabi-ld.bfd.exe: cannot find -lc
C:\codetyphon\fpc\fpc32\bin\i386-win32\arm-linux-androideabi-ld.bfd.exe: cannot find -lc
controls.lpr(850,15) Error: Error while linking

There isn't anybody to help me?

Note: I want upgrade code templates with Tools>Android Module Wizard> Upgrade Code Templates [*.lpr,*.java] menu, but this is show the below error:



and when I copy and replace App.java from C:\lazandroidmodulewizard-master\demos\Eclipse\AppActionBarTabDemo1\src\com\example\appactionbartabdemo1 into c:\program files\java\jdk1.6.0_25 change error window to below:



Any solution, tutorial?
Attachments:
Last edit: 5 years 5 months ago by Ahmad.

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago - 5 years 4 months ago #6918 by Michal
Replied by Michal on topic new components for android
These components can be managed to be joined to the Typhon. are free and are working well with Delphi. Full source.

sourceforge.net/projects/dpfdelphiandroid/
Last edit: 5 years 4 months ago by Michal.

Please Log in or Create an account to join the conversation.

More
4 years 9 months ago #8372 by Leslie
Replied by Leslie on topic new components for android
+1 one for LazAndriodModuleWizard

Please Log in or Create an account to join the conversation.

More
3 weeks 5 days ago - 3 weeks 5 days ago #14889 by Ali
Replied by Ali on topic new components for android
Hi. LAMW Ported CT. [url=[url=CAWM]https://delphidx.blogspot.com/2020/07/codetyphon-android-module-wizard-camw.html[/url]]CAMW[/url]
Last edit: 3 weeks 5 days ago by Ali.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
3 weeks 4 days ago - 3 weeks 4 days ago #14890 by Sternas Stefanos
Replied by Sternas Stefanos on topic new components for android
Thanks Sir
We can't put this library to CT
The BIG problem for us is
REQUIREMENTS:

	1. Java JDK 1.8  
	2. Gradle 4.4.1 [or up] + Internet Connection!
	3. Android SDK "plataforms" 28 + "build-tools" 28.0.3   [Min "target" need by Google Play Store]
	4. Android SDK/Extra  "Support Repository"
	5. Android SDK/Extra  "Support Library"
	6. Android SDK/Extra  "Google Repository"
	7. Android SDK/Extra  "Google Play Services"

Some of the above items break CodeTyphon "Freedom Manifest" and "Security Manifest".
Android use a "Closed Application Distribution Model" and this is a problem for us.

End CT user can use this library,
but my suggestion: it's better to use Android Studio...

PilotLogic Architect and Core Programmer
Last edit: 3 weeks 4 days ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.