A (175)

(Tuis.) #1
CHAPTER 15: Developing for Android Wearable Devices 563

EarthTime Code: MainActivity.java Class


Now you will install your standard MainActivity.java activity’s minimum bootstrap code, as shown in
Figure 15-12.


Figure 15-11. Preview the EarthTime clock UI design in the Neptune Pine AVD in the Graphical Layout Editor


Figure 15-12. Create minimum Java methods: onCreate( ), onCreateOptionsMenu( ), and onOptionsItemSelected( )

Free download pdf