A (175)

(Tuis.) #1

178 CHAPTER 6: Android Screen Design: Writing to the Display Using Activity and View


Figure 6-9. Error message tip regarding using commas for the numeric parameter values in method call


Figure 6-8. Using a milkyWay object with dot notation to call the .set( ) methods, and get rid of the warning highlight


Double-click on the setGalaxyColonies(long numberColonies):void method, which will insert the
method into your code, and then enter 37,579,321 as the number of colonies for your new Galaxy
object. As you can see, in Figure 6-9, this “throws” a red error highlighting indicator underneath your
method call.

Free download pdf