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

How to call this method?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top