Hi all,

I am developing an application designed to run on a Samsung Galaxy
Tab, with a possible display on a external screen, via an HDMI output.
My concern is about trying to detect when the external screen is
plugged or unplugged.

My first idea was to look at ACTION_SCREEN_ON and ACTION_SCREEN_OFF
intents (thanks to a custom BroadcastReceiver), since these intents
are correctly delivered when the external screen is plugged/unplugged.

The problem is that these intents are also delivered when the Galaxy
Tab's screen is waking up/going to sleep, and I could find no
additional information into them allowing to know to which screen they
are related...

So my question is : is there a way to know which screen is responsible
for an ACTION_SCREEN_ON/OFF intent ? Or more simply, is there a way to
detect when an external screen is plugged/unplugged ?

Thanks,

Hakim

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