diff options
| author | 2013-04-04 01:28:53 +0000 | |
|---|---|---|
| committer | 2013-04-04 01:28:53 +0000 | |
| commit | e4922f28b4d3c1f6ff166a6e5d5849c8533562ea (patch) | |
| tree | 7d4bb2f4d3ecff8f624b98112c419e757a9318a9 | |
| parent | e40b0810d9200c3de7e75ed3d311c8697bccd0a3 (diff) | |
| parent | fad80f7e533fcb148415c26564d5b566ebf29e7c (diff) | |
Merge "Doc update: clean up text and code snippets" into jb-mr1.1-docs
| -rw-r--r-- | docs/html/training/basics/network-ops/connecting.jd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/html/training/basics/network-ops/connecting.jd b/docs/html/training/basics/network-ops/connecting.jd index ac8d993d3e37..50a9e1bb2227 100644 --- a/docs/html/training/basics/network-ops/connecting.jd +++ b/docs/html/training/basics/network-ops/connecting.jd @@ -136,7 +136,7 @@ public class HttpExampleActivity extends Activity { getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(); if (networkInfo != null && networkInfo.isConnected()) { - new DownloadWebpageText().execute(stringUrl); + new DownloadWebpageTask().execute(stringUrl); } else { textView.setText("No network connection available."); } @@ -147,7 +147,7 @@ public class HttpExampleActivity extends Activity { // has been established, the AsyncTask downloads the contents of the webpage as // an InputStream. Finally, the InputStream is converted into a string, which is // displayed in the UI by the AsyncTask's onPostExecute method. - private class DownloadWebpageText extends AsyncTask<String, Void, String> { + private class DownloadWebpageTask extends AsyncTask<String, Void, String> { @Override protected String doInBackground(String... urls) { |