Um. This API was introduced in Froyo/2.2 (that is API 8). Prior to that there was no such formal concept of a car dock mode, thus no API.
On Wed, Apr 27, 2011 at 6:42 PM, mort <[email protected]> wrote: > On 27 Mrz., 06:34, Dianne Hackborn <[email protected]> wrote: > > Better: > > > > http://developer.android.com/reference/android/app/UiModeManager.html > > Sadly, this works only if you only target the about 2% devices with > Android 2.3... > > But the main reason for me to revive this thread: Is it possible to > get the current dock mode while being compatible to the majority of > devices (i.e. Android 2.1/2.2)? It doesn't seem like the broadcast is > sent after registerReceiver with null intent, like it works e.g. for > HEADSET_PLUG. > Additionally: Is there a way to emulate the dock modes? I only found > some old tools that stopped working since Android 2.2. > > -- > 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 > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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

