I have a simple browser app. It loads some IP and displays it using WebView. I want to access the source code of the loaded URL and store into Android string so I can use it.
For an example :
Suppose it is loaded 10.0.0.1 and the webpage shows this.
So, I want to store that "HELLO THERE". And further want to process if string is equal to "HELLO THERE", a toast will be shown.
I managed to load the URL, and I know how to make Toast. The problem is, I am not able to store that "HELLO THERE" in string.
Solution Tried :
I have tried all of above solutions. But, none worked. It would be great if I get the answer using specific scenario of mine.
I found my quesntion's solution in this post.
https://stackoverflow.com/questions/6503574/how-to-get-html-source-code-from-url-in-android[][1]
I don't know much about Ion dependency but it did my work.