CHAPTER 16: The Future of Android: The 64-Bit Android 5.0 OS 643
Figure 16-62. Copy the
Figure 16-63. Copy the planetClock
To remove these error highlights, copy the three planetClock
your Eclipse project’s /res/values/strings.xml file and add them into your IntelliJ project’s /res/values/
strings.xml definition file, as shown in Figure 16-63. As you can see, there are many similarities
between the way that an Android project is set up in 32-bit Android 4 and the way that a project is
set up in 64-bit Android 5.
Now you can copy the Java code from the EarthTime.java tab in the Android 4.1.2 project that
you created in Chapter 15 and paste it into the HelloActivity.java file under the package statement,
as shown in Figure 16-64. Remember that the package needs to stay the same, as does the
HelloActivity class, the R.layout.activity_hello reference, and the R.menu.hello reference. Other
than that, the EarthTime code should run as is! Notice that even the latest 4.x version of Eclipse
has switched from using switch-case statements for Menu Item selection to using if-then-else
statements.