diff options
author | kmccormick <kmccormick@google.com> | 2013-04-03 18:16:15 -0700 |
---|---|---|
committer | kmccormick <kmccormick@google.com> | 2013-04-03 18:26:30 -0700 |
commit | fad80f7e533fcb148415c26564d5b566ebf29e7c (patch) | |
tree | 660b3ff3f21a056d4344c7e4543881b562dd3c97 /docs/html/training | |
parent | 2ab257231fe774748298ab92f78564a5e19f23f0 (diff) | |
download | frameworks_base-fad80f7e533fcb148415c26564d5b566ebf29e7c.zip frameworks_base-fad80f7e533fcb148415c26564d5b566ebf29e7c.tar.gz frameworks_base-fad80f7e533fcb148415c26564d5b566ebf29e7c.tar.bz2 |
Doc update: clean up text and code snippets
"Bug: 6942838"
Change-Id: I496cbcd4b6236b5bc8a41484890f96721ba598a0
Diffstat (limited to 'docs/html/training')
-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 ac8d993..50a9e1b 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) { |