_Android Programming Tutorials_ Version 1.0 Ready

1 view
Skip to first unread message

Mark Murphy

unread,
Jun 3, 2009, 4:14:34 PM6/3/09
to cw-an...@googlegroups.com
Those of you with active Warescriptions are welcome to download Version
1.0 of _Android Programming Tutorials_!

Just visit http://wares.commonsware.com, log in, and your PDF will be
waiting. A Kindle edition should show up within a few days.

This has a few minor fixes over 0.95, notably addressing a bug in
Android 1.5r2 that affected the map tutorial.

_Android Programming Tutorials_ should be available in print from finer
online bookstores within the next few weeks.

The other two Android books will also be updated within the next couple
of weeks, to include Android 1.5 material, and in the case of the
Advanced Android book, to push it closer to Version 1.0.

Questions? Post 'em here!

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, $35/Year

Tony Su

unread,
Jun 19, 2009, 5:37:23 AM6/19/09
to cw-android
Early feedback is that the instructions appear to be specific to the
Linux version of the Android SDK.

For example, to setup the first project requires invoking the
"android" command but that file does not exist in the Windows version
of the Android 1.5r2 SDK.

Also, the instructions suggest configuring the PATH environmental
parameter to point to the SDK tools directory. There might be one
tools directory in the Linux SDK (unconfirmeed) but there are two such
directories in the Windows SDK, one for the updated Cupcake versions
and the other for the older Android 1.1 SDK version.

Does this qualify as a "bug?"
:)

I may just setup a Linux virtual machine anyway specifically for these
Tutorials, but it might have been nice to be able to run it on Windows
with my other dev tools. Yes, I could also probably just manually
build each project but I'm not necessarily looking to make life harder
doing mundane things when an automated setup might be available.

Tony

On Jun 3, 1:14 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> Those of you with active Warescriptions are welcome to download Version
> 1.0 of _Android Programming Tutorials_!
>
> Just visithttp://wares.commonsware.com, log in, and your PDF will be
> waiting. A Kindle edition should show up within a few days.
>
> This has a few minor fixes over 0.95, notably addressing a bug in
> Android 1.5r2 that affected the map tutorial.
>
> _Android Programming Tutorials_ should be available in print from finer
> online bookstores within the next few weeks.
>
> The other two Android books will also be updated within the next couple
> of weeks, to include Android 1.5 material, and in the case of the
> Advanced Android book, to push it closer to Version 1.0.
>
> Questions? Post 'em here!
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy

Mark Murphy

unread,
Jun 19, 2009, 8:18:18 AM6/19/09
to cw-an...@googlegroups.com
> Early feedback is that the instructions appear to be specific to the
> Linux version of the Android SDK.
>
> For example, to setup the first project requires invoking the
> "android" command but that file does not exist in the Windows version
> of the Android 1.5r2 SDK.

According to Google, it does. The section you are having trouble with is
quoted straight from the Android documentation:

http://developer.android.com/sdk/1.5_r2/installing.html

And, since I quoted them, if I'm wrong, the docs are wrong.

I've also just had nine students go through these tutorials without a
hitch, though most of them may be using Eclipse. When class resumes in a
few hours, I'll check one of their notebooks and re-confirm these
instructions.

> Also, the instructions suggest configuring the PATH environmental
> parameter to point to the SDK tools directory. There might be one
> tools directory in the Linux SDK (unconfirmeed) but there are two such
> directories in the Windows SDK, one for the updated Cupcake versions
> and the other for the older Android 1.1 SDK version.

There actually should be three tools\ directories, where $SDK below refers
to where your SDK was installed

-- $SDK\tools
-- $SDK\platform\android-1.1\tools
-- $SDK\platform\android-1.5\tools

As the Android documentation (and my book) states, the one you want in
your PATH is $SDK\tools.

Inside of $SDK\tools should be android.bat (or possiblye android.cmd),
which, last I knew, you could run simply as "android".

I am on the road at the moment, so my Windows VirtualBox is not at the
ready, otherwise I'd confirm this stuff right now.

> Does this qualify as a "bug?"
> :)

Let me do some more experimenting and I'll get back to you.

--
Mark Murphy (a Commons Guy)
http://commonsware.com

_The Busy Coder's Guide to Android Development_ Version 2.0 Available!


Mark Murphy

unread,
Jun 19, 2009, 4:03:34 PM6/19/09
to cw-an...@googlegroups.com
>> For example, to setup the first project requires invoking the
>> "android" command but that file does not exist in the Windows version
>> of the Android 1.5r2 SDK.

Oh, yes it does.

I just downloaded and unZIPped the Windows SDK.

I do not know where you installed it. Let us pretend for a moment that you
put it in C:\Program Files\android-sdk-windows-1.5_r2 -- basically, you
unZIPed the ZIP file right into C:\Program Files.

In that case, there should be a C:\Program
Files\android-sdk-windows-1.5_r2\tools directory, and in there is
android.bat. If you put that \tools directory in your PATH, then you will
be able to run the android command from your Command Prompt.

If you cannot find C:\Program Files\android-sdk-windows-1.5_r2\tools
(i.e., the \tools directory under wherever you unZIPped the SDK), then
there is a problem with your SDK installation -- please re-download and
re-install the SDK.

If you encounter further difficulties, please write back.

Tony Su

unread,
Jun 19, 2009, 5:38:31 PM6/19/09
to cw-an...@googlegroups.com
Hmmmm...
I checked and searched my entire machine and the file doesn't exist. I'll download the SDK again and re-install.

Tony
Reply all
Reply to author
Forward
0 new messages