summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author kmccormick <kmccormick@google.com> 2013-04-03 18:38:05 -0700
committer Android Git Automerger <android-git-automerger@android.com> 2013-04-03 18:38:05 -0700
commitf64ad28f6b3c56c054f938680c58b69cf7237b2c (patch)
treec25ed27455b70933c2c143594553383e28ac04d5
parent8f662f125edf393943fa7cceaf4758aae0534841 (diff)
parent15ebf622de39e1a8c7d8855f5b4ede35039a2b2b (diff)
am 15ebf622: am f614d536: am e4922f28: Merge "Doc update: clean up text and code snippets" into jb-mr1.1-docs
* commit '15ebf622de39e1a8c7d8855f5b4ede35039a2b2b': Doc update: clean up text and code snippets
-rw-r--r--docs/html/training/basics/network-ops/connecting.jd4
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 &amp;&amp; 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&lt;String, Void, String&gt; {
&#64;Override
protected String doInBackground(String... urls) {