以下代码样例返回错误代码0,这是安卓内部错误的错误代码。是否有任何解决方法可以使得在安卓10设备上发现对等设备成为可能?
wifip2pmanager.discoverPeers(wifip2pmanagerChannel, new WifiP2pManager.ActionListener() {
@Override
public void onSuccess() {
status.setText("Peer Discovery Started");
}
@Override
public void onFailure(int reason) {
status.setText("Error code:" + reason);
}
});
ACCESS_FINE_LOCATION
权限吗? - Saurabh ThoratACCESS_FINE_LOCATION
和ACCESS_COARSE_LOCATION
都已声明。 - J.Maduka