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
|