frantz lohier wrote: > - my app invokes an ACTION.PICK intent as way to extract phone contact > from the phone book and populate a database. > > When compiling my app using the SDK version 1.6 and a target emulator > configured at 1.6 level, the following code WORKS: > > Intent pickcontact = new Intent(Intent.ACTION_PICK, > People.CONTENT_URI); > startActivityForResult(pickcontact, CALL_CONTACTPICKED); > > When running the same code (compiled with SDK 1.6) and a target emulator > at 2.0 level, the above code never return the entries I have populated > in my the phone book. It's as if the phonebook was always empty.
See if this thread helps: http://groups.google.com/group/android-developers/browse_thread/thread/91d2a62cb8120009/d834e78d456caeaf?lnk=raot In other words, check to see what accounts you have. And, no, I don't know how to do that just yet. > - When running the emulator in 2.0 mode, the default local input type is > Japaneese. Any way to change this ? Interesting...the soft keyboard is English, but the prompt on the Language & Keyboard settings screen is Japanese... > - Under the 2.0 emulator, and setting a "clean" AVD image, if you launch > the dial button, press menu and select account, you'll probably > immediatly get a "android.process.acore" error ... I assumed "launch the dial button" is the green CALL button. When you press the green CALL button and press menu, there is no "account" menu choice -- only "Clear call log". > - In the most recent SDK document, I can read that "People.CONTENT_URI" > was deprecated after SDK 1.6. Therefore, I've changed the above code to: > > Intent pickcontact = new Intent(Intent.ACTION_PICK, AUTHORITY_URI); > StartActivityForResult(pickcontact, CALL_CONTACTPICKED); > > Unfortunatly, with the above, I get a crash right away when invoking > ACTION_PICK. What is AUTHORITY_URI? What does your Java stack trace say? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

