Android Question getting html of a webpage problem

tufanv

Expert
Licensed User
Longtime User
Hello,
I don't know if you have already detected this : the error comes from txtkod.Text=Html
When you comment that line it works.
oh never suspected that. why does parsing a html code into a text makes a probem interesting :/
so how can i copy the code into a text or something what an i missing ? ideas ?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
You need to show more real code (the one you are using)... I mean, you java-script calls in webview, the eventsub code...
I remember somthing that there is a true/false in the javascript call to indicate UI changes. So something like that...
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
You need to show more real code (the one you are using)... I mean, you java-script calls in webview, the eventsub code...
I remember somthing that there is a true/false in the javascript call to indicate UI changes. So something like that...
It is the whole code. I got it from the example i posted in the first msg.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

tufanv

Expert
Licensed User
Longtime User
And this is most probably the correct way.

The Code from @lemonisdead will work too i guess (due to the delegating the ui changes with cllsubdelayed to the mainthread).
So let me ask you another question , what is the best possible way to get the lines i wanted. For example i want to get the value of 2.9201 (just below the line :
<td class="para">ABD DOLARI</td>

should i use the txtkod.text.contains and something like indexof to get it or is there a better way ? It is a bit off topic from the question but sorry :)
 
Upvote 0
Top