Code example for WifiP2pManager

Methods: requestPeers

0
            String action = intent.getAction();
            if (WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION
                    .equals(action)) {
 
                if (mManager != null) {
                    mManager.requestPeers(mChannel, mListFragment);
                } 
            } 
        } 
    } 
 
    /* 
     * (non-Javadoc) 
     * @see 
     * jp.co.c_lis.sample.nikkei_linux.nl201201.sample02.ui.DeviceListFragment 
     * .Listener#onDeviceClick(android.net.wifi.p2p.WifiP2pDevice) 
     */ 
    @Override 
    public void onDeviceClick(WifiP2pDevice device) {
        mDetailFragment.showDetail(device);
    }