summaryrefslogtreecommitdiffstats
path: root/samples/ApiDemos
diff options
context:
space:
mode:
authorJonathan Dormody <jond@google.com>2017-12-13 10:35:34 -0700
committerJonathan Dormody <jond@google.com>2017-12-21 10:39:25 -0700
commita088275ef3211d30a9f941d19c5859427948233e (patch)
treed0d61ffe5f25052afbfb5cbb3e3c34ca78e1ac66 /samples/ApiDemos
parent029df27720460e0aec35e5e55fdbac09ca59a7f8 (diff)
downloadandroid_development-a088275ef3211d30a9f941d19c5859427948233e.tar.gz
android_development-a088275ef3211d30a9f941d19c5859427948233e.tar.bz2
android_development-a088275ef3211d30a9f941d19c5859427948233e.zip
Docs: Moved // BEGIN_INCLUDE a few lines up so readers understand the
context of the Binding class (it's an inner-class) Test: make ds-docs Bug: 2781699 Change-Id: I90c70f9b9f918a941c719e8b020b3c69f826cd43
Diffstat (limited to 'samples/ApiDemos')
-rw-r--r--samples/ApiDemos/src/com/example/android/apis/app/LocalServiceActivities.java6
-rw-r--r--samples/ApiDemos/src/com/example/android/apis/app/MessengerServiceActivities.java7
2 files changed, 7 insertions, 6 deletions
diff --git a/samples/ApiDemos/src/com/example/android/apis/app/LocalServiceActivities.java b/samples/ApiDemos/src/com/example/android/apis/app/LocalServiceActivities.java
index a6c3fd822..536bd8117 100644
--- a/samples/ApiDemos/src/com/example/android/apis/app/LocalServiceActivities.java
+++ b/samples/ApiDemos/src/com/example/android/apis/app/LocalServiceActivities.java
@@ -79,18 +79,18 @@ public class LocalServiceActivities {
// ----------------------------------------------------------------------
+// BEGIN_INCLUDE(bind)
/**
* Example of binding and unbinding to the local service.
* This demonstrates the implementation of a service which the client will
- * bind to, receiving an object through which it can communicate with the service.</p>
+ * bind to, receiving an object through which it can communicate with the service.
*
- * <p>Note that this is implemented as an inner class only keep the sample
+ * Note that this is implemented as an inner class only keep the sample
* all together; typically this code would appear in some separate class.
*/
public static class Binding extends Activity {
private boolean mIsBound;
-// BEGIN_INCLUDE(bind)
private LocalService mBoundService;
private ServiceConnection mConnection = new ServiceConnection() {
diff --git a/samples/ApiDemos/src/com/example/android/apis/app/MessengerServiceActivities.java b/samples/ApiDemos/src/com/example/android/apis/app/MessengerServiceActivities.java
index 8d0ac8c16..9c0cacd1b 100644
--- a/samples/ApiDemos/src/com/example/android/apis/app/MessengerServiceActivities.java
+++ b/samples/ApiDemos/src/com/example/android/apis/app/MessengerServiceActivities.java
@@ -21,16 +21,17 @@ import android.widget.TextView;
import android.widget.Toast;
public class MessengerServiceActivities {
+
+// BEGIN_INCLUDE(bind)
/**
* Example of binding and unbinding to the remote service.
* This demonstrates the implementation of a service which the client will
- * bind to, interacting with it through an aidl interface.</p>
+ * bind to, interacting with it through an aidl interface.
*
- * <p>Note that this is implemented as an inner class only keep the sample
+ * Note that this is implemented as an inner class only keep the sample
* all together; typically this code would appear in some separate class.
*/
public static class Binding extends Activity {
-// BEGIN_INCLUDE(bind)
/** Messenger for communicating with service. */
Messenger mService = null;
/** Flag indicating whether we have called bind on the service. */