android.net.wifi.p2p.nsd.WifiP2pServiceInfo Java Examples

The following examples show how to use android.net.wifi.p2p.nsd.WifiP2pServiceInfo. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WifiDirectGroupManager.java    From ShareBox with Apache License 2.0 5 votes vote down vote up
private WifiDirectGroupManager(WifiDirectManager manager,Context context){
	mWifiP2pManager=manager.getWifiP2pManager();
	mChannel=manager.getChannel();
	mWifiDirectManager=manager;
	
	mServiceRequest=WifiP2pServiceRequest.newInstance
			(WifiP2pServiceInfo.SERVICE_TYPE_ALL);
	
	mWifiP2pManager.setDnsSdResponseListeners(mChannel, this, this);
	
	mHandler=new MHandler(context.getMainLooper());
}
 
Example #2
Source File: WifiDirectHandler.java    From WiFi-Buddy with MIT License 4 votes vote down vote up
public WifiP2pServiceInfo getWifiP2pServiceInfo() {
    return this.wifiP2pServiceInfo;
}