S straybullet Member Licensed User Longtime User Jan 3, 2012 #1 Is there a simple web server for B4A ie library I am missing that will allow a B4A app to connect to it's self locally to by-pass the stupid built in security to run JavaScript and html5 in our webviews? How does phone gap get around this, wonder if it has a built in web server, seems to me we could really open up some awesome possibilities with html5 in our apps.
Is there a simple web server for B4A ie library I am missing that will allow a B4A app to connect to it's self locally to by-pass the stupid built in security to run JavaScript and html5 in our webviews? How does phone gap get around this, wonder if it has a built in web server, seems to me we could really open up some awesome possibilities with html5 in our apps.
Fusseldieb Active Member Licensed User Longtime User Jan 12, 2015 #21 Sorry for answering a such "old" thread, but I've just found a solution for that problem: NeoTechni said: It also stops listening on activity_pause, it's supposed to re-start on activity_resume but didn't. But I'm sure you guys can figure it out. Click to expand... Just put following in Activity_Resume: Code: Copy Sub Activity_Resume If Server.IsInitialized Then Server.Listen Log("Continue Listening") Else Server.Initialize(HTTP.DefaultPort, "Server") Server.Listen HTTP.AddDefaultDirectories Log("Re-initialized Listening") End If End Sub Upvote 0
Sorry for answering a such "old" thread, but I've just found a solution for that problem: NeoTechni said: It also stops listening on activity_pause, it's supposed to re-start on activity_resume but didn't. But I'm sure you guys can figure it out. Click to expand... Just put following in Activity_Resume: Code: Copy Sub Activity_Resume If Server.IsInitialized Then Server.Listen Log("Continue Listening") Else Server.Initialize(HTTP.DefaultPort, "Server") Server.Listen HTTP.AddDefaultDirectories Log("Re-initialized Listening") End If End Sub