android - Reading web and replace some words -


i want read web pages (not mine , specified) , replace words other words in web page loaded.
example, let's suppose there webpage shows string "hello, world! 07-17-2015". , want replace "07" "08". page shown this: "hello, world! 08-17-2015". (there string in example, want execute @ page)
want android. can make app feature?

just make request html content of page (bazillions methods it, lots , lots of libraries, or plain httpurlconnection).

then take output string , replace want:

// network implementation string htmlcontent = response.data.replaceall("07", "08"); 

then use webview , load string inside it:

webview.loaddata(htmlcontent, "utf-8"); 

Comments