Code example for BluetoothAdapter

Methods: setName

0
    } 
 
    @Override 
    protected boolean persistString(String value) {
        BluetoothAdapter adapter = mLocalManager.getBluetoothAdapter();
        adapter.setName(value);
        return true; 
    } 
 
    @Override 
    protected void onClick() { 
        super.onClick(); 
 
        // The dialog should be created by now 
        EditText et = getEditText();
        if (et != null) {
            et.setText(mLocalManager.getBluetoothAdapter().getName());
        } 
    } 
 
    // TextWatcher interface