_Android Programming Tutorials_ Version 0.95 Available

2 views
Skip to first unread message

Mark Murphy

unread,
May 4, 2009, 2:30:53 PM5/4/09
to cw-an...@googlegroups.com
I have updated _Android Programming Tutorials_ to support the Android
1.5 SDK. I've named this Version 0.95, since I already released Version
0.9, but I am not ready to release Version 1.0 until people have had a
chance to peek at this new version.

By "support the Android 1.5 SDK", I mean that the instructions now work
for the new SDK (e.g., activitycreator replaced by android create
project). There is no coverage of 1.5-unique features beyond that,
though those features will be prime candidates for future tutorials.

There are three known problems with the tutorials at this time:

1. You cannot run LunchList on the emulator starting with tutorial #34.
That tutorial introduces support for shaking the device to randomly
choose a restaurant. Unfortunately, the emulator hangs when trying to
access the sensor system service:

http://code.google.com/p/android/issues/detail?id=2566

2. The "helpcast" added in the Media tutorial is broken, in that the
clip only seems to play about one time in ten, due to some Android 1.5
emulator regression:

http://code.google.com/p/android/issues/detail?id=2570

3. My T-Mobile G1 is still on Android 1.1 and so I have been unable to
test this stuff on real hardware. I am hoping the two problems listed
above are peculiar to the emulator, and actual devices will work just fine.

Subscribers: your updated digital book is ready, and the source code is
available from:

http://commonsware.com/AndTutorials/

I will be releasing updates to the two Busy Coder's Guides in the next
30-45 days, barring unforeseen circumstances.

Let me know if you see any problems with the tutorials! Remember: the
Book Bug Bounty program is in effect!

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

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

Alan Jones

unread,
May 4, 2009, 7:19:33 PM5/4/09
to cw-an...@googlegroups.com
Hi Mark,

On Tue, May 5, 2009 at 4:30 AM, Mark Murphy <mmu...@commonsware.com> wrote:
> 3. My T-Mobile G1 is still on Android 1.1 and so I have been unable to
> test this stuff on real hardware. I am hoping the two problems listed
> above are peculiar to the emulator, and actual devices will work just fine.

I just tested both and they work on 1.5 though you're using a
deprecated class in the shaker.
Also the video doesn't start playing immediately, but the control bar
at the bottom can be
brought up and hit play (though perhaps not automatically starting is
the bug you referred to?)

Thanks very much for the update. Great stuff :) There's also a bunch
of unused imports in both.

Cheers,

Alan.

Mark Murphy

unread,
May 4, 2009, 7:33:53 PM5/4/09
to cw-an...@googlegroups.com
> I just tested both and they work on 1.5 though you're using a
> deprecated class in the shaker.

Yeah, I saw that, but I didn't see the need to try changing the code until
I could, y'know, run it. ;-)

> Also the video doesn't start playing immediately, but the control bar
> at the bottom can be
> brought up and hit play (though perhaps not automatically starting is
> the bug you referred to?)

Hmmmm...one time, it automatically started, or seemed to. I'll have to
play around with this some more. It may be the user interface just changed
to something non-intuitive.

> There's also a bunch of unused imports in both.

Indubitably. Someday, I'll try to clean those up.

Thanks for the info!

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

Reply all
Reply to author
Forward
0 new messages