title: Change device name on android
body: <p>I tried to change the device name on my tablet but for some reason it does not save. After changing I check and it's still the same, don't really know what's happening. I also have included the permissions too, here is my code:</p>
  
  <pre><code>BluetoothAdapter myDevice = BluetoothAdapter.getDefaultAdapter();
  myDevice.setName("new device name");
  </code></pre>
  
  <p>And here are my permissions:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.BLUETOOTH" /&gt;
  &lt;uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /&gt;
  </code></pre>