Code example for WeakHashMap

Methods: clear

0
        mLocalManager.getEventManager().unregisterCallback(this);
    } 
 
    void removeAllDevices() { 
        mLocalAdapter.stopScanning();
        mDevicePreferenceMap.clear();
        mDeviceListGroup.removeAll();
    } 
 
    void addCachedDevices() { 
        Collection<CachedBluetoothDevice> cachedDevices =
                mLocalManager.getCachedDeviceManager().getCachedDevicesCopy();
        for (CachedBluetoothDevice cachedDevice : cachedDevices) {
            onDeviceAdded(cachedDevice);
        } 
    } 
 
    @Override 
    public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen,
            Preference preference) {
Stop searching for code, let great code find you!  Add Codota to your java IDE