Question

There is a public method connectWifiDisplay(String deviceAdress) in AOSP (DisplayManagerService class), but not in Android SDK.

How to call this method?

Was it helpful?

Solution

The entire class you've linked to has been marked with @hide, which means it is not accessible through the SDK.

However, you could still technically execute the code you want using Reflection, but it is advised against this, as classes not part of the SDK are prone to changes, and the method may be altered in functionality, or cease to exist entirely in future version of Android.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top