A (175)

(Tuis.) #1
CHAPTER 6: Android Screen Design: Writing to the Display Using Activity and View 173

   Install and reference digital image new media assets, to add an actual galaxy
image to the background of your Galaxy Information Screen, to make it more
visual and more professional.
 Further enhance your .onCreate( ) method, to create TextView objects so that
the UI design can “set” its TextView objects to display the Galaxy object’s
attributes using the .set( ) method calls.

Eclipse Clean Project: Sanitizing Your Project


When I opened my Eclipse ADT and looked at the error-free code that I had left off in Chapter 5,
I was startled to see errors in my project that I knew should not be there. To research what these
were, I opened up the five error-related tabs, located at the bottom of the Integrated Development
Environment (IDE), by placing my cursor on the tan divider area, above the error tabs section. I then
clicked down (and held the mouse button in the down position) so that I could “drag” the divider
upwards, to expand the area that holds these five error tabs. I then clicked on the first tab called
“Problems,” and then I clicked the right-facing triangle, next to the Errors line item, which revealed
the two errors, “The project was not built since its build path” and “The type java.lang.Object cannot
be resolved,” which are shown at the bottom of Figure 6-3.


Figure 6-3. Errors on opening Eclipse, caused by Eclipse’s inability to resolve a link to the java.lang.Object (in Java SDK)


Since Eclipse (and ADT) are constantly evolving, these software development tools themselves
will also have “bugs” or errors in their code, just like your Android applications invariably will.
This makes the software development process even more complex, but then again, the software
development process is inherently complex anyway, so this is just something that you are going to
have to be aware of, and deal with, in your software development work process. This is why I am
putting what just happened to me, and how to deal with it if it happens to you, into this chapter, as
its very own section.

Free download pdf