Code example for BluetoothAdapter

Methods: getNamesetName

0
	 
	/** 
	 * Removes the prefix from the device name if the prefix is present. 
	 */ 
	private void restoreBTDeviceName() { 
		if(mBluetoothAdapter.getName().startsWith(PREFIX))
			mBluetoothAdapter.setName(mBluetoothAdapter.getName().substring(PREFIX.length()));
	} 
	 
	/** 
	 * Sets the interface button handlers. 
	 */ 
	public void setHandlers() { 
		Button start_server = (Button) this.findViewById(R.id.btn_start_server);
		start_server.setOnClickListener(this);
		 
		Button stop_server = (Button) this.findViewById(R.id.btn_stop_server);
		stop_server.setOnClickListener(this);
	} 
	 
Contextual code suggestions in your IDE  Get Codota for Java