1 2 3 4 5 6 7 8 9 10 11
page.tags="NetworkConnect" sample.group=Connectivity @jd:body <p> This sample demonstrates how to connect to the network and fetch raw HTML using HttpURLConnection. AsyncTask is used to perform the fetch on a background thread. </p>