OSDN Git Service

Fix bug in IntentService and Service example code.
authorFlorian Salbrechter <fsalbrechter@google.com>
Mon, 8 Feb 2016 13:36:43 +0000 (13:36 +0000)
committerFlorian Salbrechter <fsalbrechter@google.com>
Mon, 8 Feb 2016 17:03:23 +0000 (17:03 +0000)
commitadde150c02e45ff6219445c4a5b04d2e9ee1f1b4
tree27f8a60681b1dc5386d5a5cbbb4aa28ccbb3f86a
parent3b686b3c01785a1ed77335391ffb79f7a18e8514
Fix bug in IntentService and Service example code.

Use Thread.sleep instead of Object.wait which simplifies the example.
Also there is a tiny chance, that wait will be called with 0, which
blocks forever.

Change-Id: I4cf90a33089a64bdf802620350f76af08f15f721
(cherry picked from commit 77d8857ed58503669e0659989c02fb7f1ca936b4)
docs/html/guide/components/services.jd