I an trying to stop peer discovery in wifi direct using the code below.
public void StopPeerDiscovery(){
manager.stopPeerDiscovery(channel, new ActionListener() {
@Override
public void onSuccess() {
Log.d(WiFiDirectActivity.TAG,"Stopped Peer discovery");
}
@Override
public void onFailure(int i) {
Log.d(WiFiDirectActivity.TAG,"Not Stopped Peer discovery");
}
});
}
I am able to see Success message (Stopped peer discovery) in logs. But other devices are still able to view it in in peer discovery.. Am I doing something wrong here? Please advise. Thanks