File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes Difficulty Following the Book Example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Difficulty Following the Book Example" Watch "Difficulty Following the Book Example" New topic

Difficulty Following the Book Example

Nick Fio

Joined: Aug 05, 2012
Posts: 7

I'm trying to teach myself how to write an Android app via books. For both of these books, I'm finding that the instructions and the pics in the books don't quite jive with what I'm seeing on my computer.

I'm currently trudging along through Grant Allen's Beginning Android 4 and the task at hand is adding Android project files to the Eclipse workspace. The instructions are, "First, choose File ➤➤ New ➤➤ Project from the Eclipse main menu..." Ok. Easy enough. His picture looks like what I'm seeing on my screen (always a good sign!).

But then..."Then, choose Android ➤➤ Android Project from the tree of available project types..." When I do that, there's an "Android Application Project," but no "Android Project. That's gotta be the same thing...right???

And then the wheels come off: "Then, on the first page of the New Android Project wizard, choose the “Create project from existing source” radio button, click the Browse button, and open the directory containing your project’s AndroidManifest.xml file." There isn't any radio buttons and the book's image looks really different from what I'm seeing on my machine.

Thinking that the book was perhaps written before Juno was released, I installed Eclipse Indigo and followed the instructions; however...the same thing. And I had this same issue with another book that I was working with.

So what causes the discrepancy? Is it because the author is perhaps using a Mac? Does it have something to do with with me using a newer SDK? While I'm learning, it would sure make life easier if my stuff looked exactly like the author's.

Thank you!

Suhas Mandrawadkar
Ranch Hand

Joined: Jul 21, 2007
Posts: 72

Do this

File -> New -> Project -> expand Android.

The Android application project wizard was changed in last version of ADT.

Regards, Suhas S. Mandrawadkar.
Certifications: SCJP 6, SCWCD 5, Oracle WebLogic Server Administrator, OCE Java EE 6 EJB Developer
Nick Fio

Joined: Aug 05, 2012
Posts: 7

Suhas Mandrawadkar wrote:
The Android application project wizard was changed in last version of ADT.

Thanks Suhas!

Ah! Ok. So it looks like I have to make a choice here: 1) If I want my stuff to look like the book's author, I need to get rid of the new ADT and the new SDK and replace them with older versions; or, 2) Learn to do stuff with the new stuff.

If I choose the latter, how do I import a non-Eclipse Project such as the book author's sample projects (from here) and create a project from an existing source?
I agree. Here's the link:
subject: Difficulty Following the Book Example
It's not a secret anymore!