• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1page.title=Backwards Compatibility
2page.tags="support"
3page.metaDescription=Notes on how Android 4.x adapts UI designed for older hardware and OS versions.
4@jd:body
5
6<a class="notice-developers" href="{@docRoot}training/basics/supporting-devices/index.html">
7  <div>
8    <h3>Developer Docs</h3>
9    <p>Supporting Different Devices</p>
10  </div>
11</a>
12
13<p>Significant changes in Android 3.0 included:</p>
14<ul>
15<li>Deprecation of navigation hardware keys (Back, Menu, Search, Home) in favor of handling navigation
16  via virtual controls (Back, Home, Recents).</li>
17<li>Robust pattern for the use of menus in action bars.</li>
18</ul>
19<p>Android 4.0 brings these changes for tablets to the phone platform.</p>
20
21<h2 id="older-hardware">Adapting Android 4.0 to Older Hardware and Apps</h2>
22
23<div class="cols">
24  <div class="col-6">
25
26<h4>Phones with virtual navigation controls</h4>
27<p>Android apps written for Android 3.0 and later display actions in the action bar. Actions that don't
28fit in the action bar or aren't important enough to be displayed at the top level appear in the
29action overflow.</p>
30<p>Users access the action overflow by touching it in the action bar.</p>
31
32  </div>
33  <div class="col-7">
34
35    <img src="{@docRoot}design/media/compatibility_virtual_nav.png">
36
37  </div>
38</div>
39
40<div class="cols">
41  <div class="col-6">
42
43<h4>Phones with physical navigation keys</h4>
44<p>Android phones with traditional navigation hardware keys don't display the virtual navigation bar at
45the bottom of the screen. Instead, the action overflow is available from the menu hardware key. The
46resulting actions popup has the same style as in the previous example, but is displayed at the bottom of the screen.</p>
47
48  </div>
49  <div class="col-7">
50
51    <img src="{@docRoot}design/media/compatibility_physical_buttons.png">
52
53  </div>
54</div>
55
56<div class="cols">
57  <div class="col-6">
58
59<h4>Legacy apps on phones with virtual navigation controls</h4>
60<p>When you run an app that was built for Android 2.3 or earlier on a phone with virtual navigation
61controls, an action overflow control appears at the right side of the virtual navigation bar. You
62can touch the control to display the app's actions in the traditional Android menu styling.</p>
63
64  </div>
65  <div class="col-7">
66
67    <img src="{@docRoot}design/media/compatibility_legacy_apps.png">
68
69  </div>
70</div>
71