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 July 6th, 2010, 04:15 PM
Registered User
 
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch5 Contactpicker:import is deprecated for 2

I've been trying to get this example to work but it fails in two different ways:
1. File: AndroidManifest.xml,
Line: uses-sdk android:minsdkVersion="7" is too high a version for the source code.
File: Contactpicker.java,
import android.provider.Contacts.People;
shows a deprecation error.

2. If I move the minversion value to 4 (i.e. Android 1.6). The file compiles but then throws an exception in the default paad emulator.

Can you suggest what needs to be done to get this to run for Android 2+?

Thanks,

Evan





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 deprecated BigLuck BOOK: Expert PHP and MySQL 1 June 16th, 2010 11:18 AM
chapter 5 ContactPicker EricTapia BOOK: Professional Android 2 Application Development 2 April 9th, 2010 03:12 AM
import org.xml.sax is deprecated sax XML 1 November 17th, 2003 08:35 AM
GenericDataSource Deprecated lizethfc JSP Basics 0 June 5th, 2003 11:08 AM





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