January 2014
Intermediate to advanced
736 pages
70h 43m
English
Class MainActivity (Figs. 3.10–3.16) is the Tip Calculator app’s Activity subclass. When you created the TipCalculator project, the IDE generated this class as a subclass of Activity and provided an override of class Activity’s inherited onCreate method (Fig. 3.11). Every Activity subclass must override this method. The default code for class MainActivity also included an onCreateOptionsMenu method, which we removed because it’s not used in this app. We’ll discuss onCreate shortly.
Read now
Unlock full access