1<!DOCTYPE html> 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101<html> 102<head> 103 104 105<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 106<meta name="viewport" content="width=device-width" /> 107 108<link rel="shortcut icon" type="image/x-icon" href="../../../../../favicon.ico" /> 109<title>android.support.wearable.activity | Android Developers</title> 110 111<!-- STYLESHEETS --> 112<link rel="stylesheet" 113href="http://fonts.googleapis.com/css?family=Roboto+Condensed"> 114<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold" 115 title="roboto"> 116<link href="../../../../../assets/css/default.css?v=4" rel="stylesheet" type="text/css"> 117 118 119<!-- FULLSCREEN STYLESHEET --> 120<link href="../../../../../assets/css/fullscreen.css" rel="stylesheet" class="fullscreen" 121type="text/css"> 122 123 124<!-- JAVASCRIPT --> 125<script src="http://www.google.com/jsapi" type="text/javascript"></script> 126<script src="../../../../../assets/js/android_3p-bundle.js" type="text/javascript"></script> 127<script type="text/javascript"> 128 var toRoot = "../../../../../"; 129 var metaTags = []; 130 var devsite = false; 131</script> 132<script src="../../../../../assets/js/docs.js?v=3" type="text/javascript"></script> 133 134 135 136<script> 137 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 138 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 139 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 140 })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 141 142 ga('create', 'UA-5831155-1', 'android.com'); 143 ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'}); // New tracker); 144 ga('send', 'pageview'); 145 ga('universal.send', 'pageview'); // Send page view for new tracker. 146</script> 147 148</head> 149 150 151<body class="gc-documentation 152 develop reference"> 153 <div id="doc-api-level" class="" style="display:none"></div> 154 <a name="top"></a> 155 156 157<a name="top"></a> 158 159<!-- dialog to prompt lang pref change when loaded from hardcoded URL 160<div id="langMessage" style="display:none"> 161 <div> 162 <div class="lang en"> 163 <p>You requested a page in English, would you like to proceed with this language setting?</p> 164 </div> 165 <div class="lang es"> 166 <p>You requested a page in Spanish (Español), would you like to proceed with this language setting?</p> 167 </div> 168 <div class="lang ja"> 169 <p>You requested a page in Japanese (日本語), would you like to proceed with this language setting?</p> 170 </div> 171 <div class="lang ko"> 172 <p>You requested a page in Korean (한국어), would you like to proceed with this language setting?</p> 173 </div> 174 <div class="lang ru"> 175 <p>You requested a page in Russian (Русский), would you like to proceed with this language setting?</p> 176 </div> 177 <div class="lang zh-cn"> 178 <p>You requested a page in Simplified Chinese (简体中文), would you like to proceed with this language setting?</p> 179 </div> 180 <div class="lang zh-tw"> 181 <p>You requested a page in Traditional Chinese (繁體中文), would you like to proceed with this language setting?</p> 182 </div> 183 <a href="#" class="button yes" onclick="return false;"> 184 <span class="lang en">Yes</span> 185 <span class="lang es">Sí</span> 186 <span class="lang ja">Yes</span> 187 <span class="lang ko">Yes</span> 188 <span class="lang ru">Yes</span> 189 <span class="lang zh-cn">是的</span> 190 <span class="lang zh-tw">没有</span> 191 </a> 192 <a href="#" class="button" onclick="$('#langMessage').hide();return false;"> 193 <span class="lang en">No</span> 194 <span class="lang es">No</span> 195 <span class="lang ja">No</span> 196 <span class="lang ko">No</span> 197 <span class="lang ru">No</span> 198 <span class="lang zh-cn">没有</span> 199 <span class="lang zh-tw">没有</span> 200 </a> 201 </div> 202</div> --> 203 204 205 <!-- Header --> 206 <div id="header-wrapper"> 207 <div id="header"> 208 209 210 211 212 <div class="wrap" id="header-wrap"> 213 <div class="col-3 logo"> 214 <a href="../../../../../index.html"> 215 <img src="../../../../../assets/images/dac_logo.png" 216 srcset="../../../../../assets/images/dac_logo@2x.png 2x" 217 width="123" height="25" alt="Android Developers" /> 218 </a> 219 <div class="btn-quicknav" id="btn-quicknav"> 220 <a href="#" class="arrow-inactive">Quicknav</a> 221 <a href="#" class="arrow-active">Quicknav</a> 222 </div> 223 </div> 224 <ul class="nav-x col-9"> 225 <li class="design"> 226 <a href="../../../../../design/index.html" 227 zh-tw-lang="設計" 228 zh-cn-lang="设计" 229 ru-lang="Проектирование" 230 ko-lang="디자인" 231 ja-lang="設計" 232 es-lang="Diseñar" 233 >Design</a></li> 234 <li class="develop"><a href="../../../../../develop/index.html" 235 zh-tw-lang="開發" 236 zh-cn-lang="开发" 237 ru-lang="Разработка" 238 ko-lang="개발" 239 ja-lang="開発" 240 es-lang="Desarrollar" 241 >Develop</a></li> 242 <li class="distribute last"><a href="../../../../../distribute/googleplay/index.html" 243 zh-tw-lang="發佈" 244 zh-cn-lang="分发" 245 ru-lang="Распространение" 246 ko-lang="배포" 247 ja-lang="配布" 248 es-lang="Distribuir" 249 >Distribute</a></li> 250 </ul> 251 252 253 254 255<div class="menu-container"> 256 <div class="moremenu"> 257 <div id="more-btn"></div> 258 </div> 259 <div class="morehover" id="moremenu"> 260 <div class="top"></div> 261 <div class="mid"> 262 <div class="header">Links</div> 263 <ul> 264 <li><a href="https://play.google.com/apps/publish/" target="_googleplay">Google Play Developer Console</a></li> 265 <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li> 266 <li><a href="../../../../../about/index.html">About Android</a></li> 267 </ul> 268 <div class="header">Android Sites</div> 269 <ul> 270 <li><a href="http://www.android.com">Android.com</a></li> 271 <li class="active"><a>Android Developers</a></li> 272 <li><a href="http://source.android.com">Android Open Source Project</a></li> 273 </ul> 274 275 276 277 278 <br class="clearfix" /> 279 </div><!-- end 'mid' --> 280 <div class="bottom"></div> 281 </div><!-- end 'moremenu' --> 282 283 <div class="search" id="search-container"> 284 <div class="search-inner"> 285 <div id="search-btn"></div> 286 <div class="left"></div> 287 <form onsubmit="return submit_search()"> 288 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" 289 onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" 290 onkeydown="return search_changed(event, true, '../../../../../')" 291 onkeyup="return search_changed(event, false, '../../../../../')" /> 292 </form> 293 <div class="right"></div> 294 <a class="close hide">close</a> 295 <div class="left"></div> 296 <div class="right"></div> 297 </div><!-- end search-inner --> 298 </div><!-- end search-container --> 299 300 <div class="search_filtered_wrapper reference"> 301 <div class="suggest-card reference no-display"> 302 <ul class="search_filtered"> 303 </ul> 304 </div> 305 </div> 306 307 <div class="search_filtered_wrapper docs"> 308 <div class="suggest-card dummy no-display"> </div> 309 <div class="suggest-card develop no-display"> 310 <ul class="search_filtered"> 311 </ul> 312 <div class="child-card guides no-display"> 313 </div> 314 <div class="child-card training no-display"> 315 </div> 316 <div class="child-card samples no-display"> 317 </div> 318 </div> 319 <div class="suggest-card design no-display"> 320 <ul class="search_filtered"> 321 </ul> 322 </div> 323 <div class="suggest-card distribute no-display"> 324 <ul class="search_filtered"> 325 </ul> 326 </div> 327 </div> 328</div><!-- end menu-container (search and menu widget) --> 329 330 331 332 <!-- Expanded quicknav --> 333 <div id="quicknav" class="col-13"> 334 <ul> 335 <li class="about"> 336 <ul> 337 <li><a href="../../../../../about/index.html">About</a></li> 338 <li><a href="../../../../../wear/index.html">Wear</a></li> 339 <li><a href="../../../../../tv/index.html">TV</a></li> 340 <li><a href="../../../../../auto/index.html">Auto</a></li> 341 </ul> 342 </li> 343 <li class="design"> 344 <ul> 345 <li><a href="../../../../../design/index.html">Get Started</a></li> 346 <li><a href="../../../../../design/devices.html">Devices</a></li> 347 <li><a href="../../../../../design/style/index.html">Style</a></li> 348 <li><a href="../../../../../design/patterns/index.html">Patterns</a></li> 349 <li><a href="../../../../../design/building-blocks/index.html">Building Blocks</a></li> 350 <li><a href="../../../../../design/downloads/index.html">Downloads</a></li> 351 <li><a href="../../../../../design/videos/index.html">Videos</a></li> 352 </ul> 353 </li> 354 <li class="develop"> 355 <ul> 356 <li><a href="../../../../../training/index.html" 357 zh-tw-lang="訓練課程" 358 zh-cn-lang="培训" 359 ru-lang="Курсы" 360 ko-lang="교육" 361 ja-lang="トレーニング" 362 es-lang="Capacitación" 363 >Training</a></li> 364 <li><a href="../../../../../guide/index.html" 365 zh-tw-lang="API 指南" 366 zh-cn-lang="API 指南" 367 ru-lang="Руководства по API" 368 ko-lang="API 가이드" 369 ja-lang="API ガイド" 370 es-lang="Guías de la API" 371 >API Guides</a></li> 372 <li><a href="../../../../../reference/packages.html" 373 zh-tw-lang="參考資源" 374 zh-cn-lang="参考" 375 ru-lang="Справочник" 376 ko-lang="참조문서" 377 ja-lang="リファレンス" 378 es-lang="Referencia" 379 >Reference</a></li> 380 <li><a href="../../../../../sdk/index.html" 381 zh-tw-lang="相關工具" 382 zh-cn-lang="工具" 383 ru-lang="Инструменты" 384 ko-lang="도구" 385 ja-lang="ツール" 386 es-lang="Herramientas" 387 >Tools</a> 388 </li> 389 <li><a href="../../../../../google/index.html">Google Services</a> 390 </li> 391 392 </ul> 393 </li> 394 <li class="distribute last"> 395 <ul> 396 <li><a href="../../../../../distribute/googleplay/index.html">Google Play</a></li> 397 <li><a href="../../../../../distribute/essentials/index.html">Essentials</a></li> 398 <li><a href="../../../../../distribute/users/index.html">Get Users</a></li> 399 <li><a href="../../../../../distribute/engage/index.html">Engage & Retain</a></li> 400 <li><a href="../../../../../distribute/monetize/index.html">Monetize</a></li> 401 <li><a href="../../../../../distribute/tools/index.html">Tools & Reference</a></li> 402 <li><a href="../../../../../distribute/stories/index.html">Developer Stories</a></li> 403 </ul> 404 </li> 405 </ul> 406 </div><!-- /Expanded quicknav --> 407 </div><!-- end header-wrap.wrap --> 408 </div><!-- end header --> 409 410 411 <!-- Secondary x-nav --> 412 <div id="nav-x"> 413 <div class="wrap" style="position:relative;z-index:1"> 414 415 416 417 <a id="helpoutsLink" class="resource resource-card resource-card-6x2x3 resource-card-6x2 helpouts-card" 418 href="http://helpouts.google.com/partner/landing/provider/googledevelopers?utm_source=dac&utm_medium=banner&utm_campaign=android_provider_banner3" target="_blank"> 419 <div class="card-bg helpouts-card-bg"></div> 420 <div class="card-info"> 421 <div class="helpouts-description"> 422 <div class="text">Help Android Wear and TV developers<br/> 423 <span id="helpoutsLinkText" class="link-color" 424 style="display:block;padding-top:5px;text-align:right">Learn more</span> 425 </div> 426 </div> 427 </div> 428 </a> 429 430 431 432 <ul class="nav-x col-9 develop" style="width:100%"> 433 <li class="training"><a href="../../../../../training/index.html" 434 zh-tw-lang="訓練課程" 435 zh-cn-lang="培训" 436 ru-lang="Курсы" 437 ko-lang="교육" 438 ja-lang="トレーニング" 439 es-lang="Capacitación" 440 >Training</a></li> 441 <li class="guide"><a href="../../../../../guide/index.html" 442 zh-tw-lang="API 指南" 443 zh-cn-lang="API 指南" 444 ru-lang="Руководства по API" 445 ko-lang="API 가이드" 446 ja-lang="API ガイド" 447 es-lang="Guías de la API" 448 >API Guides</a></li> 449 <li class="reference"><a href="../../../../../reference/packages.html" 450 zh-tw-lang="參考資源" 451 zh-cn-lang="参考" 452 ru-lang="Справочник" 453 ko-lang="참조문서" 454 ja-lang="リファレンス" 455 es-lang="Referencia" 456 >Reference</a></li> 457 <li class="tools"><a href="../../../../../sdk/index.html" 458 zh-tw-lang="相關工具" 459 zh-cn-lang="工具" 460 ru-lang="Инструменты" 461 ko-lang="도구" 462 ja-lang="ツール" 463 es-lang="Herramientas" 464 >Tools</a></li> 465 <li class="google"><a href="../../../../../google/index.html" 466 >Google Services</a> 467 </li> 468 469 </ul> 470 </div> 471 </div> 472 <!-- /Sendondary x-nav DEVELOP --> 473 474 475 476 <div id="searchResults" class="wrap" style="display:none;"> 477 <h2 id="searchTitle">Results</h2> 478 <div id="leftSearchControl" class="search-control">Loading...</div> 479 </div> 480 </div> <!--end header-wrapper --> 481 482 <div id="sticky-header"> 483 <div> 484 <a class="logo" href="#top"></a> 485 <a class="top" href="#top"></a> 486 <ul class="breadcrumb"> 487 488 <li class="current">android.support.wearable.activity</li> 489 </ul> 490 </div> 491 </div> 492 493 494 495 496 497 <div class="wrap clearfix" id="body-content"> 498 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 499 <div id="devdoc-nav"> 500 <div id="api-nav-header"> 501 <div id="api-level-toggle"> 502 <label for="apiLevelCheckbox" class="disabled" 503 title="Select your target API level to dim unavailable APIs">API level: </label> 504 <div class="select-wrapper"> 505 <select id="apiLevelSelector"> 506 <!-- option elements added by buildApiLevelSelector() --> 507 </select> 508 </div> 509 </div><!-- end toggle --> 510 <div id="api-nav-title">Android APIs</div> 511 </div><!-- end nav header --> 512 <script> 513 var SINCE_DATA = [ ]; 514 buildApiLevelSelector(); 515 </script> 516 517 <div id="swapper"> 518 <div id="nav-panels"> 519 <div id="resize-packages-nav"> 520 <div id="packages-nav" class="scroll-pane"> 521 522 <ul> 523 524 <li class="api apilevel-"> 525 <a href="../../../../../reference/android/support/wearable/package-summary.html">android.support.wearable</a></li> 526 <li class="selected api apilevel-"> 527 <a href="../../../../../reference/android/support/wearable/activity/package-summary.html">android.support.wearable.activity</a></li> 528 <li class="api apilevel-"> 529 <a href="../../../../../reference/android/support/wearable/companion/package-summary.html">android.support.wearable.companion</a></li> 530 <li class="api apilevel-"> 531 <a href="../../../../../reference/android/support/wearable/provider/package-summary.html">android.support.wearable.provider</a></li> 532 <li class="api apilevel-"> 533 <a href="../../../../../reference/android/support/wearable/view/package-summary.html">android.support.wearable.view</a></li> 534 <li class="api apilevel-"> 535 <a href="../../../../../reference/android/support/wearable/watchface/package-summary.html">android.support.wearable.watchface</a></li> 536 </ul><br/> 537 538 </div> <!-- end packages-nav --> 539 </div> <!-- end resize-packages --> 540 <div id="classes-nav" class="scroll-pane"> 541 542 543 544 <ul> 545 546 547 548 <li><h2>Classes</h2> 549 <ul> 550 <li class="api apilevel-"><a href="../../../../../reference/android/support/wearable/activity/ConfirmationActivity.html">ConfirmationActivity</a></li> 551 </ul> 552 </li> 553 554 555 556 </ul><br/> 557 558 559 </div><!-- end classes --> 560 </div><!-- end nav-panels --> 561 <div id="nav-tree" style="display:none" class="scroll-pane"> 562 <div id="tree-list"></div> 563 </div><!-- end nav-tree --> 564 </div><!-- end swapper --> 565 <div id="nav-swap"> 566 <a class="fullscreen">fullscreen</a> 567 <a href='#' onclick='swapNav();return false;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a> 568 </div> 569 </div> <!-- end devdoc-nav --> 570 </div> <!-- end side-nav --> 571 <script type="text/javascript"> 572 // init fullscreen based on user pref 573 var fullscreen = readCookie("fullscreen"); 574 if (fullscreen != 0) { 575 if (fullscreen == "false") { 576 toggleFullscreen(false); 577 } else { 578 toggleFullscreen(true); 579 } 580 } 581 // init nav version for mobile 582 if (isMobile) { 583 swapNav(); // tree view should be used on mobile 584 $('#nav-swap').hide(); 585 } else { 586 chooseDefaultNav(); 587 if ($("#nav-tree").is(':visible')) { 588 init_default_navtree("../../../../../"); 589 } 590 } 591 // scroll the selected page into view 592 $(document).ready(function() { 593 scrollIntoView("packages-nav"); 594 scrollIntoView("classes-nav"); 595 }); 596 </script> 597 598 599 600 601 602<div class="col-12" id="doc-col"> 603 604<div id="api-info-block"> 605<div class="api-level"> 606 607 608 609 610</div> 611</div> 612 613<div id="jd-header"> 614 package 615 <h1>android.support.wearable.activity</h1> 616</div><!-- end header --> 617 618<div id="naMessage"></div> 619 620<div id="jd-content" class="api apilevel-"><p style="border:2px solid #99ccff;padding:12px;margin-top:20px"><strong>Note:</strong> The Wearable Support Library classes under the <code>android.support.wearable</code> package are subject to change. For the full Android API reference, see <a href="/reference/">Reference</a>.</p> 621 622 623 624 625 626 627 628 629 630 631 632 633 634 <h2>Classes</h2> 635 <div class="jd-sumtable"> 636 637 638 <table class="jd-sumtable-expando"> 639 640 <tr class="alt-color api apilevel-" > 641 <td class="jd-linkcol"><a href="../../../../../reference/android/support/wearable/activity/ConfirmationActivity.html">ConfirmationActivity</a></td> 642 <td class="jd-descrcol" width="100%"> 643 This Activity is used to display confirmation animations after the user completes an action on 644 the wearable. 645 646 647 648 </td> 649 </tr> 650 651 652 </table> 653 654 </div> 655 656 657 658 659 660 661 662 663 664 665 666 667<div id="footer" class="wrap" > 668 669 670 <div id="copyright"> 671 672 Except as noted, this content is licensed under <a 673 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 674 For details and restrictions, see the <a href="../../../../../license.html"> 675 Content License</a>. 676 </div> 677 <div id="build_info"> 678 679 Android Wearable Support r — 680<script src="../../../../../timestamp.js" type="text/javascript"></script> 681<script>document.write(BUILD_TIMESTAMP)</script> 682 683 </div> 684 685 686 <div id="footerlinks"> 687 688 <p> 689 <a href="../../../../../about/index.html">About Android</a> | 690 <a href="../../../../../legal.html">Legal</a> | 691 <a href="../../../../../support.html">Support</a> 692 </p> 693 </div> 694 695</div> <!-- end footer --> 696</div><!-- end jd-content --> 697</div><!-- doc-content --> 698 699</div> <!-- end body-content --> 700 701 702 703 704 705 706</body> 707</html> 708