Presentation Display is null Android 4.2.2

834 Views Asked by At

I need to enable sharing content on a secondary screen via a HDMI port on android, and hence am using the Presentation api provided in 4.2.

But while running the sample code provided from here. The hdmi connection is detected and even mirroring of the screen works fine but not the presentation display[if you look at the toast, Presentation display is null], can anyone explain what is happening here.

enter image description here

1

There are 1 best solutions below

0
On

It can happen the device you're using doesn't support displaying a presentation on any route. Have you tried to run your code code while using the "Simulate secondary displays" functionality available in developer settings ?