I need to initialize WifiP2pManager in library.
Is this right way to do this
Is this right way to do this
B4X:
private String EventName;
private BA ba;
public void Initialize(final BA ba, String EventName) {
this.EventName=EventName; this.ba=ba;
manager = (WifiP2pManager) ba.context.getSystemService(Context.WIFI_P2P_SERVICE);
channel = manager.initialize(ba.context, BA.handler.getLooper(), null);
}