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

Reply via email to