There is an android application with WebView, which opens a html page with one number. You need to get this number and write to the variable.

  • Show what you have already done. - Vladimir Glinskikh
  • Nothing special: the simplest example that loads a given page into WebView. the server side already sends not even html but a simple number from 0 to 1024 and this number needs to be written to a variable for further actions - TravMurav
  • use jsoup - Artem

1 answer 1

If in the forehead - take the resulting string and extract the required number. You can use regular expressions, you can use indexOf cut a number from the text between the tags (or how the string comes in)

  • There are no problems with extracting the number: the whole page consists of one number (no tags, no headers) I can't figure out how to get and write a line - TravMurav