xref: /aosp_15_r20/development/samples/browseable/Quiz/_index.jd (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard Worker
2*90c8c64dSAndroid Build Coastguard Workerpage.tags="Quiz"
3*90c8c64dSAndroid Build Coastguard Workersample.group=Wearable
4*90c8c64dSAndroid Build Coastguard Worker@jd:body
5*90c8c64dSAndroid Build Coastguard Worker
6*90c8c64dSAndroid Build Coastguard Worker<p>
7*90c8c64dSAndroid Build Coastguard Worker
8*90c8c64dSAndroid Build Coastguard Worker            This sample uses Google Play Services Wearable Data APIs to communicate between
9*90c8c64dSAndroid Build Coastguard Worker            applications on a phone and a paired wearable device. Users can create quiz questions on the phone,
10*90c8c64dSAndroid Build Coastguard Worker            each of which has an associated DataItem. These DataItems are then received on the wearable, which
11*90c8c64dSAndroid Build Coastguard Worker            displays them as notifications. Each notification contains the question as the first page, followed
12*90c8c64dSAndroid Build Coastguard Worker            by answers as actions. When an answer is selected, the corresponding question\'s DataItem is updated,
13*90c8c64dSAndroid Build Coastguard Worker            which allows the phone application to update the status of the question (i.e. did the user answer it
14*90c8c64dSAndroid Build Coastguard Worker            correctly or not) and prompt the next question.
15*90c8c64dSAndroid Build Coastguard Worker
16*90c8c64dSAndroid Build Coastguard Worker        </p>
17