On 27 Apr., 21:24, Dianne Hackborn <[email protected]> wrote:
> Um.  This API was introduced in Froyo/2.2 (that is API 8).

Oops, sorry, mixed up the version numbers... :o

> ACTION_DOCK_EVENT is about the device being placed in a dock.  Calling that
> API puts the device in to car mode, but that doesn't cause it to be placed
> in to a dock.

OK. I think this separation between "dock mode" and "dock event" is a
bit confusing, I expected those to belong together, even if only
"emulated". But of course there might be situations where this
separation is useful...

So if I understood this correctly:
ACTION_DOCK_EVENT is for apps that want to respond to "real" dock
changes, like showing some activity, notification, or toast. It's
supported since Android 2.0, and can't be emulated since 2.2.
UiModeManager and Configuration.uiMode allow to query the current
mode, which is the way to go if the app should e.g. show different
layouts depending on the dock mode, but only exists since Android 2.2.
UiModeManager also allows to (de)activate the car mode.
Right?

-- 
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

Reply via email to