Code example for WifiP2pDeviceList

Methods: getDeviceList

0
        if (progressDialog != null && progressDialog.isShowing()) {
            progressDialog.dismiss();
        } 
        if (getListAdapter() != null) {
        	peers.clear();
        	peers.addAll(peerList.getDeviceList());
        	((WiFiPeerListAdapter) getListAdapter()).notifyDataSetChanged();
        } 
        if (peers.size() == 0) {
            Log.d("Test", "No devices found");
            return; 
        } 
 
    } 
 
    public void clearPeers() { 
        peers.clear();
        ((WiFiPeerListAdapter) getListAdapter()).notifyDataSetChanged();
    } 
 
    /**