LAMW with WST lazarus / 43-Android ---------------------------------------------------------------------- Robert Gilland · 2019-03-25 03:30 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:::" ---------------------------------------------------------------------- Robert Gilland · 2019-03-25 04:35 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 · 2019-03-25 04:47 You can try pure free-pascal  "fphttpclient"  [fcl-web] copy "fphttpclient.pp",  "httpdefs.pp" and "httpprotocol.pp" to your project "jni" folder.... ---------------------------------------------------------------------- Robert Gilland · 2019-03-25 05:28 Found this was already available. in fpc_http_protocol.pas ---------------------------------------------------------------------- jmpessoa · 2019-03-25 07:05 Ok. I put some solution there: https://forum.lazarus.freepascal.org/index.php/topic,38365.0.html ---------------------------------------------------------------------- Robert Gilland · 2019-03-25 12:00 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.