Forum > Android

LAMW with jar libraries

(1/7) > >>

Robert Gilland:
I used Tools -> LAMW -> Use Import Java Stuff.

All it did was move files from my Third Party java Library to my Project directory.

I was expecting it to convert the java files to pas files.

So I could use them in my LAMW application.

No Idea how to actually use these files in my project.

I have a Bar code scanner jar library. I need to access.

None of the demos or example projects seem to help.

I would upload the jar library but it is too big.

jmpessoa:

You can try the demo "AppIntentDemoZXing1"

But we can implement a pascal interface to your jar library.
Upload  a simple java demo to some "online open drive"....

Robert Gilland:
Have sent a link to jmpessoa via private message, this includes a small test java app and the SDK of the Third Party vendor. Am looking at the AppIntentDemoZXing1 app.

Robert Gilland:
Can't get appintentdemozxing1 working it crashes


adb logs from appintentdemozxing1 are below:



I/BufferQueue(  132): [Starting com.example.appintentdemozxing1](this:0x4189e730,api:2) disconnect: api=2
I/SurfaceTexture(  132): [Starting com.example.appintentdemozxing1] [virtual android::status_t android::SurfaceTexture::forceAuxConversionLocked()] mCurrentTexture:0, mCurrentBuf:0x41b6ef38
I/BufferQueue(  132): [Starting com.example.appintentdemozxing1](this:0x4189e730,api:0) getReleasedBuffers: returning mask 0xffffffff
I/SurfaceTexture(  132): [Starting com.example.appintentdemozxing1](this:0x419ac628,api:0) destroying EGLImage dpy=0x1 img=0x10000008
D/KeyguardViewMediator(  548): setHidden false
D/KeyguardUpdateMonitor(  548): sendKeyguardVisibilityChanged(true)
D/AudioFlinger(  137): stop(4097), calling pid 548
D/AudioFlinger(  137): not stopping/stopped => stopping/stopped (4097) on thread 0x41be5460
D/AudioMTKPolicyManager(  137): stopOutput() output 2, stream 1, session 466
D/AudioMTKPolicyManager(  137): getNewDevice() selected device 0 output= 2
D/AudioMTKPolicyManager(  137): setOutputDevice() output 2 device 0000 delayMs 184
D/AudioMTKPolicyManager(  137): checkDeviceMuteStrategies outputDesc = 0x419c69b0 prevDevice = 2 delayMs = 184
D/AudioMTKPolicyManager(  137): setOutputDevice() setting same device 0000 or null device for output 2
D/KeyguardUpdateMonitor(  548): handleKeyguardVisibilityChanged(1)
D/AudioTrack(  548): audiotrack 0x5694b6a0 stop done
D/KeyguardViewMediator(  548): handleMessage enter msg name=SET_HIDDEN
D/KeyguardViewMediator(  548): handleMessage exit msg name=SET_HIDDEN
I/BufferQueue(  132): [Starting com.example.appintentdemozxing1](this:0x4189e730,api:0) consumerDisconnect
I/BufferQueue(  132): [Starting com.example.appintentdemozxing1](this:0x4189e730,api:0) ~BufferQueue
D/AudioFlinger(  137): track 4097 u=00001000, s=00001000 [NOT READY] on thread 0x41be5460
D/AudioFlinger(  137): presentationComplete() reset: mPresentationCompleteFrames 9177 audioHalFrames 4057
D/AudioFlinger(  137): track 4097 u=00001000, s=00001000 [NOT READY] on thread 0x41be5460
D/AudioFlinger(  137): threadLoop_sleepTime write muted data to hw
D/AudioMTKStreamOut(  137): write(), buffer = 0x41be5728 bytes = 4096 mLatency = 92
D/AudioFlinger(  137): track 4097 u=00001000, s=00001000 [NOT READY] on thread 0x41be5460
D/AudioFlinger(  137): track 4097 u=00001000, s=00001000 [NOT READY] on thread 0x41be5460
D/AudioFlinger(  137): presentationComplete() session 466 complete: framesWritten 9216
D/AudioFlinger(  137): TrackBase::reset
D/AudioFlinger(  137): threadLoop_sleepTime write muted data to hw
D/AudioMTKStreamOut(  137): write(), buffer = 0x41be5728 bytes = 4096 mLatency = 92
D/AudioFlinger(  137): threadLoop_sleepTime write muted data to hw
D/AudioMTKStreamOut(  137): write(), buffer = 0x41be5728 bytes = 4096 mLatency = 92
D/AudioFlinger(  137): threadLoop_sleepTime write muted data to hw
D/AudioMTKStreamOut(  137): write(), buffer = 0x41be5728 bytes = 4096 mLatency = 92
D/AudioFlinger(  137): threadLoop_sleepTime write muted data to hw
D/AudioMTKStreamOut(  137): write(), buffer = 0x41be5728 bytes = 4096 mLatency = 92
D/AudioFlinger(  137): threadLoop_sleepTime write muted data to hw
D/AudioMTKStreamOut(  137): write(), buffer = 0x41be5728 bytes = 4096 mLatency = 92
D/AudioFlinger(  137): threadLoop_sleepTime write muted data to hw
D/AudioMTKStreamOut(  137): write(), buffer = 0x41be5728 bytes = 4096 mLatency = 92
D/AudioFlinger(  137): threadLoop_sleepTime write muted data to hw
D/AudioMTKStreamOut(  137): write(), buffer = 0x41be5728 bytes = 4096 mLatency = 92
D/AudioFlinger(  137): threadLoop_sleepTime write muted data to hw
D/AudioMTKStreamOut(  137): write(), buffer = 0x41be5728 bytes = 4096 mLatency = 92
D/KeyguardViewMediator(  548): setHidden false
D/KeyguardUpdateMonitor(  548): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor(  548): handleKeyguardVisibilityChanged(1)
D/KeyguardViewMediator(  548): handleMessage enter msg name=SET_HIDDEN
D/AudioFlinger(  137): threadLoop_sleepTime write muted data to hw
D/AudioMTKStreamOut(  137): write(), buffer = 0x41be5728 bytes = 4096 mLatency = 92
D/KeyguardViewMediator(  548): handleMessage exit msg name=SET_HIDDEN
I/BufferQueue(  132): [Application Error: com.example.appintentdemozxing1](this:0x41b66d60,api:2) disconnect: api=2
I/SurfaceTexture(  132): [Application Error: com.example.appintentdemozxing1] [virtual android::status_t android::SurfaceTexture::forceAuxConversionLocked()] mCurrentTexture:2, mCurrentBuf:0x414a6f40
I/BufferQueue(  132): [Application Error: com.example.appintentdemozxing1](this:0x41b66d60,api:0) getReleasedBuffers: returning mask 0xffffffff
I/SurfaceTexture(  132): [Application Error: com.example.appintentdemozxing1](this:0x41b6e2f0,api:0) destroying EGLImage dpy=0x1 img=0x10000004
I/SurfaceTexture(  132): [Application Error: com.example.appintentdemozxing1](this:0x41b6e2f0,api:0) destroying EGLImage dpy=0x1 img=0x1000000b
I/SurfaceTexture(  132): [Application Error: com.example.appintentdemozxing1](this:0x41b6e2f0,api:0) destroying EGLImage dpy=0x1 img=0x1000000c
D/KeyguardViewMediator(  548): setHidden false
D/KeyguardUpdateMonitor(  548): sendKeyguardVisibilityChanged(true)
D/KeyguardUpdateMonitor(  548): handleKeyguardVisibilityChanged(1)
D/KeyguardViewMediator(  548): handleMessage enter msg name=SET_HIDDEN
D/KeyguardViewMediator(  548): handleMessage exit msg name=SET_HIDDEN
I/BufferQueue(  132): [Application Error: com.example.appintentdemozxing1](this:0x41b66d60,api:0) consumerDisconnect
I/BufferQueue(  132): [Application Error: com.example.appintentdemozxing1](this:0x41b66d60,api:0) ~BufferQueue
D/AudioFlinger(  137): threadLoop_sleepTime write muted data to hw

jmpessoa:

demo "AppIntentDemoZXing1"  updated!

Added runtime permission!  [need for Android >= 6.0]

Thank you!

Navigation

[0] Message Index

[#] Next page

Go to full version