Help Needed: webview receive data back from external website

Paul Veenstra

New Member
Licensed User
Longtime User
Dear users, i am struggling to receive data back from a external webpage.
The page must return 3 strings that i want to capture in b4x.
The tablet OS is Android 16 and to my knowledge Google gas tightend the java it.
I does not have to be complicated the 3 string are less that 256 chars.
It is data from a database, id, number, description.
So my question is simple how to get databack to the b4a app that holds the webview?
 

Cliff McKibbin

Member
Licensed User
Longtime User
Paul, Here is my method of connecting to a hosted server. It works great and gives almost instant results.
The write-up includes the call and read logic from b4a and the php logic to read the query, search the DB, and return the query.
You are not 'syncing' as I am, but the principle of reading the DB would be the same, I would think.
You only have to issue the b4a 'query' to 'read' and the php reading of the DB and returning the result.
Cliff


 
Last edited:

Paul Veenstra

New Member
Licensed User
Longtime User
Paul, Here is my method of connecting to a hosted server. It works great and gives almost instant results.
The write-up includes the call and read logic from b4a and the php logic to read the query, search the DB, and return the query.
You are not 'syncing' as I am, but the principle of reading the DB would be the same, I would think.
You only have to issue the b4a 'query' to 'read' and the php reading of the DB and returning the result.
Cliff


I'll give a try, thanks for pointing this out.
 
Top