Learn Java for Android Development

Front Cover
Apress, Sep 29, 2010 - Computers - 656 pages
10 Reviews

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.

What you’ll learn The Java language: This book provides complete coverage of nearly every pre-Java version 7 language feature (native methods are briefly mentioned but not formally covered). Starting with those features related to classes and objects, you progress to object-oriented features related to inheritance, polymorphism, and interfaces. You then explore the advanced language features for nested types, packages, static imports, exceptions, assertions, annotations, generics, and enums. Continuing, you investigate strictfp, class literals, synchronized, volatile, the enhanced for loop statement, autoboxing/unboxing, and transient fields. The book also briefly presents most (if not all) of Java version 7’s language features, although not much is said about closures or modules (which were not finalized at the time of writing). Java APIs: In addition to Object and APIs related to exceptions, you explore Math, StrictMath, BigDecimal, BigInteger, Package, Boolean, Character, Byte, Short, Integer, Long, Float, Double, Number, the References API, the Reflection API, String, StringBuffer, System, the Threading API, the collections framework, the concurrency utilities, the internationalization APIs, the Preferences API, Random, the Regular Expressions API, File, RandomAccessFile, stream classes, and writer/reader classes. You will also get a tiny taste of Swing in the context of internationalization. Tools: You will learn how to use the JDK’s javac (compiler), java (application launcher), javadoc (Java documentation generator), and jar (Java archive creator, updater, and extractor) tools. You will also receive an introduction to the NetBeans and Eclipse integrated development environments. Although you can develop Android apps without NetBeans or Eclipse, working with these IDEs is much more pleasant. Who this book is for

This book is for any programmer (including existing Java programmers and Objective-C [iPhone/iPad] programmers) of any skill level who needs to obtain a solid understanding of the Java language and foundational Java APIs before jumping into Android app development.

Table of Contents Getting Started with Java Learning Language Fundamentals Learning Object-Oriented Language Features Mastering Advanced Language Features, Part 1 Mastering Advanced Language Features, Part 2 Exploring the Basic APIs, Part 1 Exploring the Basic APIs, Part 2 Discovering the Collections Framework Discovering Additional Utility APIs Performing I/O Solutions to Exercises
 

What people are saying - Write a review

User ratings

5 stars
7
4 stars
1
3 stars
1
2 stars
0
1 star
1

User Review - Flag as inappropriate

I'm a student at Full Sail University in the final year of the Mobile Development Bachelor of Science Program. I received this book and made time to read one chapter per day (speed reading) and experimented with all the code in the book (actually doing the code myself helped me understand what I was reading). Then I re-read the book cover to cover, taking notes and highlighting sections that were important for me to understand.
This book is going to stay on my book shelf and I do reference it often because I develop Native Android mobile apps every week. I'm giving it 5 stars because it's been very helpful for my learning experience and it's going to continue helping me while I move forward with my career developing mobile apps.
 

User Review - Flag as inappropriate

I didn't find the book value for money. We have to pay as much as Rs 2600. But it has only some 569 pages which means Rs 4 per page, is just too much. I would rathr]er recommend java a complete reference Seventh edition published by Tata mc Graw Hill.

Contents

Getting Started with Java
1
Learning Language Fundamentals
43
Learning ObjectOriented Language Features
97
Mastering Advanced Language Features Part 1
139
Mastering Advanced Language Features Part 2
181
Exploring the Basic APIs Part 1
227
Exploring the Basic APIs Part 2
269
Discovering the Collections Framework
315
Discovering Additional Utility APIs
381
Performing IO
449
Solutions to Exercises
533
Index
595
Copyright

Other editions - View all

Common terms and phrases

About the author (2010)

Jeff Friesen is a freelance tutor and software developer with an emphasis on Java (and now Android). In addition to writing Android Recipes, Jeff has written numerous articles on Java and other technologies for JavaWorld (JavaWorld.com), informIT (InformIT.com), Java.net, and DevSource (DevSource.com). Jeff can be contacted via his website at TutorTutor.ca.

Bibliographic information