Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Beginning Android 4 Application Development
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning Android 4 Application Development
This is the forum to discuss the Wrox book Beginning Android 4 Application Development by Wei-Meng Lee; ISBN: 978-1-1181-9954-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Android 4 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 5th, 2014, 10:01 AM
Authorized User
Points: 65, Level: 1
Points: 65, Level: 1 Points: 65, Level: 1 Points: 65, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 15
Thanks: 2
Thanked 1 Time in 1 Post
Default Critique of book (Beginning Android 4 Application Development)

OK, so I started going through this book over a year ago and, like many others, got stuck in the first couple of chapters. I then decided that I ought to get to grips with Java before getting into Android programming and spent a while on that. Several things unrelated to learning Android / Java distracted me for most of last year but I've been back and finally completed the book and all the tutorials within it and feel that it may be useful to others to give some general feedback on the book.

Firstly, the author clearly notes in the Intro two important things; a) "...you might want to take a programming course in Java programming first", and, b) that "...while it is always possible that by the time you read this book, a newer version of the tools may be available (SDK, Eclipse etc. etc.)... any variations should be manageable".

I agree 100% with his first statement in that you'll struggle if you don't have any other OOP programming knowledge but think his 2nd statement is somewhat of a cop-out as witnessed by many of the posts in this forum. OK, he's right, the tools have changed since it was published but, sadly he's made very little effort in these threads to help people struggling with the first few chapters. So I don't think the book deserves the title "Beginning Android 4..." as many people obviously haven't found these changes manageable.

So, to help those struggling getting started here's a couple of quick tips...

If you use the default Eclipse project setup wizard (I'd recommend this) you're likely to end up with a layout file called activity_main.xml and a Java file called MainActivity.java and immediately you'll start running into conflicts with the code within the book. The author tends to use a layout file called main.xml so that should be easy to substitute for your own filename. For example on P33, the last line of real code he has:-
Code:
setContentView(R.layout.main);
Whereas, because I used the default setup wizard, my code reads:
Code:
setContentView(R.layout.activity_main);
Because he tends to create a Java file with an appropriate name e.g. P24 he has HelloWorldActivity.java, P38 he has Activity101Activity.java etc. etc. So you either need to conform with how he creates his projects, labelling the java file with his filenames or be tuned into the fact that you'll need to change the code as you go along, replacing his calls to the java file with your own filename.

For example on P38 his 4th line of code reads:
Code:
public class Activity101Activity extends Activity {
...}
Because I used the defaults in my project setup wizard, which many of you may do, my code reads:
Code:
public class MainActivity extends Activity {
...}
The second problem that you're likely to experience if you use the default project setup wizard is the package name. He tends to use a default of net.learn2develop.his_package_name whereas the wizard uses com.example.your_package_name. Admittedly you'll be a few chapters in before this really starts to cause problems but problems will occur (particularly for tutorials using more than one java class file) unless the package name is correctly referenced. The first of these occurs on P54 when a 2nd java class file is created and the 2nd line of code on P55 as well as the almost last line of code on P56 needs to correctly reference whatever package name you created earlier.

Finally, what do I think of the book overall? Well I wouldn't recommend it for anyone who is really Beginning Android 4 Application Development, I'd give it a score of 5 out of 10 but, then, I don't really have any alternative recommendations.

In general I found it covers a lot of ground but doesn't really cover each step of the way thoroughly. There are some very interesting tutorials but I've been left wondering how I can adapt these coding examples for my own purposes.

Hope that helps some of you and good luck!
The Following User Says Thank You to wolfenr For This Useful Post:
nenad.bulatovic (December 5th, 2014)
 
Old February 4th, 2014, 02:58 PM
Registered User
Points: 15, Level: 1
Points: 15, Level: 1 Points: 15, Level: 1 Points: 15, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2014
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default still reading chapter 2

I am starting with this book after going through 12 chapters of Android Programming: The Big Nerd Ranch Guide. That other book was more recent when it comes to creating a new Android project with the ADT, but it didn't have as much explanation of the code as I would have liked.

It is probably hard for a newbie to reconcile the files that the ADT automatically generates for you with the code in the book.

The author has a new book scheduled for release later this year.

I think there is no one good book on Android programming.

And knowing Java is important. Something like the Java for Dummies should be adequate.
 
Old February 6th, 2014, 02:52 AM
Authorized User
Points: 65, Level: 1
Points: 65, Level: 1 Points: 65, Level: 1 Points: 65, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 15
Thanks: 2
Thanked 1 Time in 1 Post
Default Thanks @centralnj

Thanks for your input @centralnj.

It's interesting in that I'm doing a short Android course at the moment and one of my fellow students was recommending Android Programming: The Big Nerd Ranch Guide I'll take a look at Java for Dummies when I get the chance.

I wish you luck with Beginning Android 4 App Development and good to see someone else posting in this forum about their experiences with the book.
 
Old February 6th, 2014, 10:02 AM
Registered User
Points: 15, Level: 1
Points: 15, Level: 1 Points: 15, Level: 1 Points: 15, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2014
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The first couple of chapters of Android Programming: The Big Nerd Ranch Guide was good. But then it became too much of just typing along with the book and with me not understanding what the code was doing.

As for this book, I think I will read up through chapter 6.

I am not sure what kind of app I want to write.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Professional Android 4 Application Development Questions on Stack Overflow Reto BOOK: Professional Android 4 Application Development 13 June 3rd, 2014 06:09 PM
chapter 1 Beginning Android 4 Application Development olawale BOOK: Beginning Android 4 Application Development 2 March 20th, 2013 05:14 PM
The book doesn't specifically say what tools are needed for Android Development vbboyd BOOK: Beginning Android Application Development 1 August 28th, 2011 02:06 PM
Chapter 11 code listing for Professonal Android 2 Application Development robertkji BOOK: Professional Android 2 Application Development 1 November 26th, 2010 09:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.