Skip to main content

2010 | Buch

Learn Java for Android Development

insite
SUCHEN

Über dieses Buch

Android development is hot, and many programmers are interested in joining the fun. However, because this technology is based on Java, you should first obtain a solid grasp of the Java language and its foundational APIs to improve your chances of succeeding as an Android app developer. After all, you will be busy learning the architecture of an Android app, the various Android-specific APIs, and Android-specific tools. If you do not already know Java fundamentals, you will probably end up with a massive headache from also having to quickly cram those fundamentals into your knowledge base.

Learn Java for Android Development teaches programmers of any skill level the essential Java language and foundational Java API skills that must be learned to improve the programmer’s chances of succeeding as an Android app developer. Each of the book’s 10 chapters provides an exercise section that gives you the opportunity to reinforce your understanding of the chapter’s material. Answers to the book’s more than 300 exercises are provided in an appendix. Additionally, author Jeff Friesen has created six bonus chapters that you can download from his personal site, located at http://tutortutor.ca/cgi-bin/makepage.cgi?/books/ljfad.

Once you complete this book, you will be ready to dive into Android, and you can start that journey by obtaining a copy of Beginning Android 2.

Inhaltsverzeichnis

Frontmatter
Chapter 1. Getting Started with Java
Abstract
Android is Google’s software stack for mobile devices that includes an operating system and middleware. With help from Java, the OS runs specially designed Java applications known as Android apps. Because these apps are based on Java, it makes sense for you to learn about Java before you dive into the world of Android development.
Chapter 2. Learning Language Fundamentals
Abstract
Aspiring Android developers need to understand the Java language. Java is an objectoriented language in which developers use objects to represent entities (things that exist, such as vehicles, checking and savings bank accounts, and buttons and other user interface components). Language features supporting this paradigm are the focus of this chapter and Chapter 3. More advanced features are discussed in Chapters 4 and 5. Additional advanced but minor features are more appropriately discussed in later chapters.
Chapter 3. Learning Object-Oriented Language Features
Abstract
An object-based language encapsulates attributes and behaviors in objects. To be known as an object-oriented language, the language must also support inheritance and polymorphism. This chapter introduces you to Java’s language features that support these twin pillars of object orientation. Furthermore, the chapter introduces you to interfaces, Java’s ultimate abstract type mechanism.
Chapter 4. Mastering Advanced Language Features Part 1
Abstract
Chapters 2 and 3 laid a foundation for learning the Java language. Chapter 4 builds onto this foundation by introducing you to some of Java’s more advanced language features, specifically those features related to nested types, packages, static imports, and exceptions. Additional advanced language features are covered in Chapter 5.
Chapter 5. Mastering Advanced Language Features Part 2
Abstract
Chapters 2 and 3 laid a foundation for learning the Java language, and Chapter 4 built onto this foundation by introducing some of Java’s more advanced language features. Chapter 5 continues to cover advanced language features by focusing on those features related to assertions, annotations, generics, and enums.
Chapter 6. Exploring the Basic APIs Part 1
Abstract
Aspiring Android developers need to acquire a solid understanding of foundational Java APIs. You have already encountered a few of these APIs, such as the Object and String classes and the Throwable class hierarchy. This chapter introduces you to additional language-oriented (basic) APIs pertaining to math, packages, primitive types, and the garbage collector.
Chapter 7. Exploring the Basic APIs Part 2
Abstract
Chapter 7 continues to explore Java’s basic (language-oriented) APIs by introducing APIs that let you use reflection to obtain type information at runtime and more, manage strings, perform system activities (such as retrieving a system property value and obtaining the current time), and use threads to improve application performance.
Chapter 8. Discovering the Collections Framework
Abstract
Java’s standard class library includes various utility APIs. An important category of utility APIs is the collections framework, which lets applications manage groups of objects. After presenting an overview of this framework, this chapter introduces you to the framework’s core interfaces, implementation classes, and utility classes. Chapter 8 ends by discussing Java’s classic collections classes.
Chapter 9. Discovering Additional Utility APIs
Abstract
Chapter 9 continues to explore Java’s utility APIs by introducing APIs that help you work with threads in an easier way, internationalize your applications to reach a wider audience, save configuration preferences in persistent storage, obtain random numbers in a more flexible manner, and quickly search and parse strings.
Chapter 10. Performing I/O
Abstract
Applications often input data for processing and output processing results. Data is input from a file or some other source, and is output to a file or some other destination. Java supports I/O via the classic I/O APIs located in the java.io package. This chapter introduces you to java.io’s File, RandomAccessFile, stream, and writer/reader classes.
Backmatter
Metadaten
Titel
Learn Java for Android Development
verfasst von
Jeff “JavaJeff” Friesen
Copyright-Jahr
2010
Verlag
Apress
Electronic ISBN
978-1-4302-3157-8
Print ISBN
978-1-4302-3156-1
DOI
https://doi.org/10.1007/978-1-4302-3157-8