Thanks Jarkman for your perspectives on this. 2 additional questions;
- can the emulator simulate accessing a gmail account ? (as ways to avoid dealing with the Accountmanager APIs) - A more general and critical question; if apps start to have to behave differently based on the Android OS version they run on, there are a lot of implications; On Mon, Nov 2, 2009 at 2:33 AM, jarkman <jark...@gmail.com> wrote: > > > On Nov 2, 1:57 am, frantz lohier <floh...@gmail.com> wrote: > > > 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. > > My (hazy) understanding is that the 1.6 APIs will only show you the > contacts in the primary gmail-syncing account on the device. As the > emulator doesn't have one of those accounts, your newly-entered > contacts are in a different account (or in some kind of no-account > limbo), so they are invisible to the 1.6 APIs. > > I think that on a real device with a real account the situation will > be better, though you still need to move to the 2.0 APIs to support > users who have multiple accounts. > > It may be possible to use the AccountManager APIs to manufacture an > account of the right sort in the emulator, which would make it > possible to enter new contacts who would show up in the 1.6 APIs, but > I don't think there are enough clues in the published docs to tell us > how to do that. > > > - When running the emulator in 2.0 mode, the default local input type is > > Japaneese. Any way to change this ? > > Yes, you can fiddle with the IME settings in the Settings app, in > 'Language & Keyboard'. > > Richard > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en