Recent

Author Topic: LAMW with WST  (Read 2125 times)

Robert Gilland

  • Full Member
  • ***
  • Posts: 160
LAMW with WST
« on: March 25, 2019, 04:30:47 am »
I have finally worked out how to  create a working LAMW app, on Android-17.
My next objective is call a Web Services Toolkit proxy from the android.

Can't see any reason why it should not work.
However it does not
adb logs dont seem tomake any sense  either.

I/ShowMessage(10158): http:Address=http://10.0.0.25:8080/?format=SOAP
D/AudioAnalogReg(  137): SetAnalogReg offet = 0x52 value = 0x3001 mask = 0xffffffff
D/AudioAnalogReg(  137): SetAnalogReg offet = 0x6a value = 0xa00 mask = 0xffffffff
D/AudioMTKVolumeController(  137): AudioMTKVolumeController getMasterVolume
D/AudioMTKVolumeController(  137): AudioMTKVolumeController setMasterVolume v = 1.000000 mode = 0 devices = 0x2
D/AudioMTKVolumeController(  137): ApplyAmpGain  Gain = 256 mode= 0 device = 3
D/AudioMTKVolumeController(  137): DegradedBGain   = 3
D/AudioAnalogControl(  137): SetAnalogGain VoleumType = 4 volume = 3
D/AudioPlatformDevice(  137): SetAnalogGain VOLUME_TYPE = 4 volume = 3
D/AudioMachineDevice(  137): SetAnalogGain VOLUME_TYPE = 4 volume = 3
D/AudioAnalogReg(  137): SetAnalogReg offet = 0x64 value = 0xa00 mask = 0xffff0f00
D/AudioAnalogControl(  137): SetAnalogGain VoleumType = 5 volume = 3
D/AudioPlatformDevice(  137): SetAnalogGain VOLUME_TYPE = 5 volume = 3
D/AudioMachineDevice(  137): SetAnalogGain VOLUME_TYPE = 5 volume = 3
D/AudioAnalogReg(  137): SetAnalogReg offet = 0x64 value = 0xa00 mask = 0xffff0f00
D/AudioFlinger(  137): track 4098 u=00000000, s=00000000 [NOT READY] on thread 0x41be5460
D/AudioFlinger(  137): BUFFER TIMEOUT:   track->mUnderrunCount++;(3)
D/AudioFlinger(  137): threadLoop_sleepTime sleep time 23000
I/NotificationService(  548): enqueueToast pkg=crasx.mobile.crasx_mobile callback=android.app.ITransientNotification$Stub$Proxy@4265ec50 duration=0
V/NotificationService(  548): notifications are enabled for crasx.mobile.crasx_mobile
D/NotificationService(  548): Show pkg=crasx.mobile.crasx_mobile callback=android.app.ITransientNotification$Stub$Proxy@4265ec50
D/AudioFlinger(  137): track 4098 u=00000000, s=00000000 [NOT READY] on thread 0x41be5460
D/AudioFlinger(  137): BUFFER TIMEOUT:   track->mUnderrunCount++;(5)
D/AudioFlinger(  137): threadLoop_sleepTime write muted data to hw
D/AudioMTKStreamOut(  137): write(), buffer = 0x41be5728 bytes = 4096 mLatency = 92
D/AudioFlinger(  137): track 4098 u=00000000, s=00000000 [NOT READY] on thread 0x41be5460
D/AudioFlinger(  137): BUFFER TIMEOUT:   track->mUnderrunCount++;(7)
D/AudioFlinger(  137): threadLoop_sleepTime sleep time 11500
D/AudioTrack(  548): sched_setscheduler to rt, priority: 1
D/AudioMTKStreamOut(  137): write(), buffer = 0x41be5728 bytes = 4096 mLatency = 92
I/ShowMessage(10158): XML root node must be "Envelope", found : "html:::"
« Last Edit: March 25, 2019, 04:35:48 am by Robert Gilland »

Robert Gilland

  • Full Member
  • ***
  • Posts: 160
Re: LAMW with WST
« Reply #1 on: March 25, 2019, 05:35:45 am »
Looks like this has already been asked for in. https://forum.lazarus.freepascal.org/index.php?topic=38365.0.

I propose another solution.  Creation of a lamw_http_protocol.pas unit, that allows interacts with the And_jni_Bridge.pas unit.

I am currently having a crack at it. using synapse_http_protocol.pas as an example from the WST package.

No Idea what I am doing really.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW with WST
« Reply #2 on: March 25, 2019, 05:47:55 am »


You can try pure free-pascal  "fphttpclient"  [fcl-web]

copy "fphttpclient.pp",  "httpdefs.pp" and "httpprotocol.pp" to your project "jni" folder....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Robert Gilland

  • Full Member
  • ***
  • Posts: 160
Re: LAMW with WST
« Reply #3 on: March 25, 2019, 06:28:57 am »
Found this was already available.

in fpc_http_protocol.pas


« Last Edit: March 27, 2019, 12:37:34 am by Robert Gilland »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW with WST
« Reply #4 on: March 25, 2019, 08:05:25 am »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Robert Gilland

  • Full Member
  • ***
  • Posts: 160
Re: LAMW with WST
« Reply #5 on: March 25, 2019, 01:00:08 pm »
I must humbly apologise. I was able to make it work with fpc_http_protocol.pas.
The failure in it not working was entirely mine.

 

TinyPortal © 2005-2018