summaryrefslogtreecommitdiffstats
path: root/docs/html/guide/components/services.jd
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2012-08-09 11:49:50 -0700
committerScott Main <smain@google.com>2012-08-09 16:38:12 -0700
commitcb0b2df11464b1035ded39a06722242ee6c595b4 (patch)
treeec77021f6dc56230ed4d01174be05d0ac86e48cb /docs/html/guide/components/services.jd
parent2f8cc17f5fbc2e05ac0889fbbddf4e530750087b (diff)
downloadframeworks_base-cb0b2df11464b1035ded39a06722242ee6c595b4.zip
frameworks_base-cb0b2df11464b1035ded39a06722242ee6c595b4.tar.gz
frameworks_base-cb0b2df11464b1035ded39a06722242ee6c595b4.tar.bz2
fix misc doc bugs from external issues
Change-Id: I11b1d524dd2159b58c65d3ef7a76af15624ae365
Diffstat (limited to 'docs/html/guide/components/services.jd')
-rw-r--r--docs/html/guide/components/services.jd15
1 files changed, 6 insertions, 9 deletions
diff --git a/docs/html/guide/components/services.jd b/docs/html/guide/components/services.jd
index b89914a..6e5dfd2 100644
--- a/docs/html/guide/components/services.jd
+++ b/docs/html/guide/components/services.jd
@@ -755,15 +755,6 @@ stopSelf()} does not actually stop the service until all clients unbind. </p>
changes in the service's state and perform work at the appropriate times. The following skeleton
service demonstrates each of the lifecycle methods:</p>
-
-<div class="figure" style="width:432px">
-<img src="{@docRoot}images/service_lifecycle.png" alt="" />
-<p class="img-caption"><strong>Figure 2.</strong> The service lifecycle. The diagram on the left
-shows the lifecycle when the service is created with {@link android.content.Context#startService
-startService()} and the diagram on the right shows the lifecycle when the service is created
-with {@link android.content.Context#bindService bindService()}.</p>
-</div>
-
<pre>
public class ExampleService extends Service {
int mStartMode; // indicates how to behave if the service is killed
@@ -804,6 +795,12 @@ public class ExampleService extends Service {
<p class="note"><strong>Note:</strong> Unlike the activity lifecycle callback methods, you are
<em>not</em> required to call the superclass implementation of these callback methods.</p>
+<img src="{@docRoot}images/service_lifecycle.png" alt="" />
+<p class="img-caption"><strong>Figure 2.</strong> The service lifecycle. The diagram on the left
+shows the lifecycle when the service is created with {@link android.content.Context#startService
+startService()} and the diagram on the right shows the lifecycle when the service is created
+with {@link android.content.Context#bindService bindService()}.</p>
+
<p>By implementing these methods, you can monitor two nested loops of the service's lifecycle: </p>
<ul>