Android Question Get Document Text of HTML/XML

Jan Van Gastel

Member
Licensed User
I am building an APP which communication with a PLC. I want to read out status of hardware inputs and outputs. My PLC can give this information with XML pages. So I need to read out a XML page.

I already did this in VB.NET. I used a WebView and downloaded the documenttext of the XML to a string. This string I used for getting the right information.

But how does it works in Android ?
I've read something of HTTPutils2, but it does not work...
 

Jan Van Gastel

Member
Licensed User
No, unfortenaly it won't work.

Option 1 is change the http header of my PLC, but this one is a difficult :) .
Option 2, is to connect not with XML. I can also ask data with a telnet session. Does this works in B4A ?
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
yes, telnet or serial communication should work if you know how to get that data out of it that way.
 
Upvote 0
Top