Use Asynctask to capture web page data in Android app

Asked

Viewed 75 times

0

Good morning, another newcomer in android development. Going straight to the point, I would like to know how to call an Asynctask, which captures a String in a web page, within another class, passing the captured string to a Textfield. I confess that I did not fully understand the examples found, and I would like some help. Thanks in advance to anyone who answers this question.

  • Rodolfo, it would be nice if you posted some code of what has already been done, so it would be easier to help you.

  • Rodolfo, welcome to Stackoverflow! Your question is too broad for Stackoverflow format. See how the site works on tour and how to ask.

  • Thank you for your welcome. Rubico, sorry for the delay in responding to your statement. I was able to solve the problem related to String’s capture, but I have another problem. Briefly, I capture all the Html from the page, concatenate it into a string and upload it to the Textview from another Activity. The problem is this: I can’t handle the accented letters.For example, if I’m going to treat the word "connection", the method breaks the word into "connected" and "the". How can I solve this problem? PS: if the question is in the wrong place, please direct me where to put it.

  • Special character related problem solved.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.