Recent

Author Topic: LAMW with jar libraries  (Read 12883 times)

Robert Gilland

  • Full Member
  • ***
  • Posts: 160
Re: LAMW with jar libraries
« Reply #15 on: April 01, 2019, 07:32:02 am »
Was able to get the PDA working using the BroadcastRecevierDemo2 as basis.

Have attached working LAMW code
« Last Edit: April 05, 2019, 03:37:05 am by Robert Gilland »

las

  • New Member
  • *
  • Posts: 26
Re: LAMW with jar libraries
« Reply #16 on: April 03, 2019, 03:42:26 pm »
Hi!
First, i'm want to say thanks for excellent LAMW.
I readed all google and forum. But can't searched, how to use 3rd party jar library in LAMW project. Can i self add it to project, or not?

 I copy it to libs. Lazarus add it to .apk, but FindClass don't find class from .jar
Please, help me. What i'm do wrong?

Sorry for my English...

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW with jar libraries
« Reply #17 on: April 03, 2019, 06:17:26 pm »

Hi,  what jar lib you need?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

las

  • New Member
  • *
  • Posts: 26
Re: LAMW with jar libraries
« Reply #18 on: April 03, 2019, 09:23:55 pm »
Specialized library for working with banking equipment for payment cards. The Bank gave me an example application for Android Studio. Everything is compiled in Android Studio. But for many years I write only on Lazarus for Windows and Linux. Moving to Java is not fast, but the project should be . It would be very good to be able to connect any Java library on your own. So, as it is done for example with the connection of dll in Lazarus when creating applications for Windows.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW with jar libraries
« Reply #19 on: April 04, 2019, 06:11:30 pm »

Quote
Moving to Java is not fast, but the project should be...

Ok! I will help you!!!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

las

  • New Member
  • *
  • Posts: 26
Re: LAMW with jar libraries
« Reply #20 on: April 04, 2019, 06:18:22 pm »
How can you help me? Ideally, I would like to get some instructions on a simple example of how to connect the jar to Lazarus. I think this question is very interesting for many people.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW with jar libraries
« Reply #21 on: April 04, 2019, 06:21:03 pm »

Yes!

I will write some instructions/tutorial!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Robert Gilland

  • Full Member
  • ***
  • Posts: 160
Re: LAMW with jar libraries
« Reply #22 on: April 04, 2019, 11:46:34 pm »
Yes very, interesting for me as well, I was able to solve my problems without using jar libraries, next time I might not be so lucky.

schumi

  • New Member
  • *
  • Posts: 40
Re: LAMW with jar libraries
« Reply #23 on: July 13, 2021, 12:30:20 pm »
Hi,
I'm interested to connect jar SDK library in a lamw app to control android rugged device.

There is some tutorial?

thank you

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW with jar libraries
« Reply #24 on: July 13, 2021, 07:58:09 pm »


Quote
I'm interested to connect jar SDK library ...

The ease path is to try mimic a [very simple]  Java/Android example using this jar library...

Do you have one?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

schumi

  • New Member
  • *
  • Posts: 40
Re: LAMW with jar libraries
« Reply #25 on: July 14, 2021, 08:50:33 am »
I want try to integrate Datalogic Android SDK https://datalogic.github.io/ with tools --> [LAMW]... --> New jComponent but I don't understant so much.

Thank yoy

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW with jar libraries
« Reply #26 on: July 14, 2021, 11:21:56 pm »

OK, the JAVA "samples"  is here:

https://datalogic.github.io/android/samples/

Which of these [samples] do you want to start with?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW with jar libraries
« Reply #27 on: July 15, 2021, 07:56:31 am »
You can get from here: (opendrive.com)

https://od.lk/f/Ml8xOTc0OTIwNzNf

a complete tutorial (from image1 to image34) how to add an "online" library to LAMW [new jComponent]!!!

However the "datalogic"  APIs tested in LAMW code returned nothing (nil)...
In fact the library source code pointed by Android Studio is clearly returning null in several APIs....
« Last Edit: July 15, 2021, 07:58:32 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: LAMW with jar libraries
« Reply #28 on: July 15, 2021, 11:26:45 am »
This tutorial will be buried here. Shouldn't it be in a better place, like a wiki page or github folder?

af0815

  • Hero Member
  • *****
  • Posts: 1289
Re: LAMW with jar libraries
« Reply #29 on: July 15, 2021, 02:42:25 pm »
strange, i didnt know the power of lamw. But with this pictures. THX to jmpessoa

+1

for safe this picture tutorial on a safe place

yes, i know datalogic and the devices too :-)
regards
Andreas

 

TinyPortal © 2005-2018