Skip to content

Commit a5e150c

Browse files
labtopiaAndroid (Google) Code Review
authored andcommitted
Merge "cherrypick from master docs: Battery class C2DM -> GCM Change-Id: If5fe0034ae0bb72c321b591f84e79acbaf2e36f1" into jb-dev
2 parents c950641 + ec4ec27 commit a5e150c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/html/training/efficient-downloads/regular_updates.jd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ next.link=redundant_redundant.html
1515

1616
<h2>This lesson teaches you to</h2>
1717
<ol>
18-
<li><a href="#C2DM">Use Cloud to Device Messaging as an alternative to polling</a></li>
18+
<li><a href="#GCM">Use Google Cloud Messaging as an alternative to polling</a></li>
1919
<li><a href="#OptimizedPolling">Optimize polling with inexact repeating alarms and exponential back-offs</a></li>
2020
</ol>
2121

2222
<h2>You should also read</h2>
2323
<ul>
2424
<li><a href="{@docRoot}training/monitoring-device-state/index.html">Optimizing Battery Life</a></li>
25-
<li><a href="http://code.google.com/android/c2dm/">Android Cloud to Device Messaging</a></li>
25+
<li><a href="{@docRoot}guide/google/gcm/index.html">Google Cloud Messaging for Android</a></li>
2626
</ul>
2727

2828
</div>
@@ -34,17 +34,17 @@ next.link=redundant_redundant.html
3434

3535
<p>This lesson will examine how your refresh frequency can be varied to best mitigate the effect of background updates on the underlying wireless radio state machine.</p>
3636

37-
<h2 id="C2DM">Use Cloud to Device Messaging as an Alternative to Polling</h2>
37+
<h2 id="GCM">Use Google Cloud Messaging as an Alternative to Polling</h2>
3838

3939
<p>Every time your app polls your server to check if an update is required, you activate the wireless radio, drawing power unnecessarily, for up to 20 seconds on a typical 3G connection.</p>
4040

41-
<p><a href="http://code.google.com/android/c2dm/">Android Cloud to Device Messaging (C2DM)</a> is a lightweight mechanism used to transmit data from a server to a particular app instance. Using C2DM, your server can notify your app running on a particular device that there is new data available for it.</p>
41+
<p><a href="{@docRoot}guide/google/gcm/index.html">Google Cloud Messaging for Android (GCM)</a> is a lightweight mechanism used to transmit data from a server to a particular app instance. Using GCM, your server can notify your app running on a particular device that there is new data available for it.</p>
4242

4343
<p>Compared to polling, where your app must regularly ping the server to query for new data, this event-driven model allows your app to create a new connection only when it knows there is data to download.</p>
4444

4545
<p>The result is a reduction in unnecessary connections, and a reduced latency for updated data within your application.</p>
4646

47-
<p>C2DM is implemented using a persistent TCP/IP connection. While it's possible to implement your own push service, it's best practice to use C2DM. This minimizes the number of persistent connections and allows the platform to optimize bandwidth and minimize the associated impact on battery life.</p>
47+
<p>GCM is implemented using a persistent TCP/IP connection. While it's possible to implement your own push service, it's best practice to use GCM. This minimizes the number of persistent connections and allows the platform to optimize bandwidth and minimize the associated impact on battery life.</p>
4848

4949
<h2 id="OptimizedPolling">Optimize Polling with Inexact Repeating Alarms and Exponential Backoffs</h2>
5050

@@ -99,4 +99,4 @@ executeUpdateOrPrefetch();</pre>
9999
}
100100
}</pre>
101101

102-
<p>Alternatively, for transfers that are failure tolerant (such as regular updates), you can simply ignore failed connection and transfer attempts.</p>
102+
<p>Alternatively, for transfers that are failure tolerant (such as regular updates), you can simply ignore failed connection and transfer attempts.</p>

0 commit comments

Comments
 (0)