On the Android developers website, there is code regarding Android Bluetooth connectivity and such. I am very new to Android, and hence can't even follow a simple tutorial. There is a certain section of code
BluetoothAdapter myBluetooth = BluetoothAdapter.getDefaultAdapter();
Where does this line belong? Does it belong in the main activity or a new, separate activity?