Recent

Author Topic: Third Party Java Libraries  (Read 831 times)

Robert Gilland

  • Full Member
  • ***
  • Posts: 118
Third Party Java Libraries
« on: March 14, 2019, 06:29:02 am »
Can Lazarus for Android access Third Party Java Libraries?
Needing to access Bar Code Reading hardware. Have Java SDK for it.

Thaddy

  • Hero Member
  • *****
  • Posts: 7890
Re: Third Party Java Libraries
« Reply #1 on: March 14, 2019, 10:22:40 am »
Can Lazarus for Android access Third Party Java Libraries?
Needing to access Bar Code Reading hardware. Have Java SDK for it.
Yes.
Hamlet 1.4 (nothing wrong with the Danish, btw)

Robert Gilland

  • Full Member
  • ***
  • Posts: 118
Re: Third Party Java Libraries
« Reply #2 on: March 15, 2019, 12:17:23 am »
Great News, are there any online examples for this?
Also what is the difference between Android and Android-JVM?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8063
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Third Party Java Libraries
« Reply #3 on: March 15, 2019, 01:07:21 am »
Great News, are there any online examples for this?
AFAIR LAMW has a tool for generating Pascal unit from Java classes, but I'm not sure. I haven't coded Android in a long time.
Also what is the difference between Android and Android-JVM?
The former targets ARM natively (will only run on Android of the same architecture), the latter targets... well... JVM, just like what a Java compiler will produce (it will run on any Android regardless of architecture).

Robert Gilland

  • Full Member
  • ***
  • Posts: 118
Re: Third Party Java Libraries
« Reply #4 on: March 15, 2019, 01:25:54 am »
Does this mean if I compile an Android APP using Android Oreo NDK and SDK in LazAndroid, it can only work in Oreo? Oreo = Android 8.0.0

Robert Gilland

  • Full Member
  • ***
  • Posts: 118
Re: Third Party Java Libraries
« Reply #5 on: March 15, 2019, 01:29:17 am »
Who is LAMW?

Handoko

  • Hero Member
  • *****
  • Posts: 3021
  • My goal: build my own game engine using Lazarus
Re: Third Party Java Libraries
« Reply #6 on: March 15, 2019, 03:45:26 am »
LAMW (Lazarus Android Module Wizard) is one of the possible way to create Android apps using Lazarus.

There are several other ways to create Android apps using Lazarus/FPC:
http://forum.lazarus.freepascal.org/index.php/topic,38777.msg264428.html#msg264428

Leledumbo

  • Hero Member
  • *****
  • Posts: 8063
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Third Party Java Libraries
« Reply #7 on: March 15, 2019, 12:30:49 pm »
Does this mean if I compile an Android APP using Android Oreo NDK and SDK in LazAndroid, it can only work in Oreo? Oreo = Android 8.0.0
Android version isn't related with any of the above. You define that in the manifest (target SDK version and minimum SDK version).