Page 1 of 1

WebGadget Android

Posted: Sat Nov 15, 2025 2:27 pm
by Noos88
Hello, I have a problem with version 3.10 of SpiderBasic, the WebGadget does not work correctly on Android.
Do you have a solution? Thank you.

Code: Select all

Enumeration 
  #Window
  #GadgetWeb
EndEnumeration

Global URL.s= "http://www.spiderbasic.com"

ExamineDesktops()
Global w = DesktopWidth(0)
Global h = DesktopHeight(0)
Global Wgadget

Procedure onResize()
  Protected w = DesktopWidth(0)
  Protected h = DesktopHeight(0)
  ResizeGadget(Wgadget, #PB_Ignore, #PB_Ignore, w , h)
EndProcedure

;Window (Full Screen)
OpenWindow(#Window, 0, 0, w, h, "BlocTel", #PB_Window_Background)
; CloseDebugOutput()
;Web Gadget
WebGadget(#GadgetWeb, 0, 0, w, h , URL)

;Triggers
BindEvent(#PB_Event_SizeDesktop, @onResize())

Re: WebGadget Android

Posted: Sat Nov 15, 2025 2:43 pm
by Paul

Code: Select all

ResizeGadget(Wgadget, #PB_Ignore, #PB_Ignore, w , h)
Wgadget = ??

Re: WebGadget Android

Posted: Sat Nov 15, 2025 5:52 pm
by Noos88
Sorry, I had created a small piece of code to show you.

Code: Select all

Enumeration 
  #Window
  #GadgetWeb
EndEnumeration

Global URL.s= "http://www.spiderbasic.com"

ExamineDesktops()
Global w = DesktopWidth(0)
Global h = DesktopHeight(0)

Procedure onResize()
  Protected w = DesktopWidth(0)
  Protected h = DesktopHeight(0)
  ResizeGadget(#GadgetWeb, #PB_Ignore, #PB_Ignore, w , h)
EndProcedure

;Window (Full Screen)
OpenWindow(#Window, 0, 0, w, h, "BlocTel", #PB_Window_Background)
; CloseDebugOutput()
;Web Gadget
WebGadget(#GadgetWeb, 0, 0, w, h , URL)

;Triggers
BindEvent(#PB_Event_SizeDesktop, @onResize())

Re: WebGadget Android

Posted: Sat Nov 15, 2025 6:17 pm
by Paul
Works if I change

Code: Select all

Global URL.s= "http://www.spiderbasic.com"
to secure website...
Global URL.s= "https://www.spiderbasic.com"

Re: WebGadget Android

Posted: Sat Nov 15, 2025 8:48 pm
by Noos88
Thank you very much, I hadn't tried secure sites. But regarding unsecured sites, any ideas?

Re: WebGadget Android

Posted: Mon Nov 17, 2025 10:19 am
by Fred
Did you tried to check the 'Enable unsecure HTTP support' in the Create App dialog ?