Wrox Programmer Forums
|
BOOK: Professional Android 2 Application Development
This is the forum to discuss the Wrox book Professional Android 2 Application Development, 2nd Edition by Reto Meier; ISBN: 978-0-470-56552-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android 2 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 November 29th, 2010, 01:45 PM
Registered User
 
Join Date: Nov 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default outdated code example, chapter 5

Hello everybody,

first of all I want to say, that I really like that book. I take it with me where ever I go. There could be every time a chance to have some free time to take a look inside, in the tram, in the breaks between the lectures I am a Java beginner and so a beginner in Android programming too. At the time I am trying to write a app for an university project, which consists of an Android application, that can do some signal processing, basically it should just show the spectrogram of the signal it gets from the mic. I didn't write much code yet (don't know where to start). But I hope with the help of this book, I can get a good insight into this field.

Why I am writing here?
Beside reading the book I try the examples...
I am using the newest SDK version, means programming for version 8.
Seems that there is some outdated code in chapter 5, the example called "Select Contact". It's working fine, of course.
But just for information, I changed the code in the "ContentPicker.java" from
Code:
import android.provider.Contacts.People;
.
.
.
String[] from = new String[] {People.NAME};
to
Code:
import android.provider.ContactsContract.Contacts;
.
.
.
String[] from = new String[] {Contacts.DISPLAY_NAME};
to use the since API level 5 existing "ContactsContract".

The program is working like before, so seems to be correct.
As I said, just for your information and I wanted to write into this forum anyways

greeting from germany
nyyrikki





Similar Threads
Thread Thread Starter Forum Replies Last Post
Outdated skalrynd BOOK: Facebook Application Development ISBN: 978-0-470-24666-5 5 April 21st, 2010 01:02 PM
'crviewer9.dll may be outdated' error HugoSousa Crystal Reports 1 February 26th, 2009 07:39 AM
COM Outdated? bluethecow General .NET 2 November 3rd, 2006 02:48 AM
Newbie... outdated book.. advice apprciated! mysticpain Beginning PHP 1 September 2nd, 2006 10:06 AM
Outdated: VB code version link - Thanks MythicalMe jminatel BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 11 August 14th, 2006 08:25 AM





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