title: Android 4.3 BluetoothAdapter cache
body: <p>I have an app that uses <strong>Bluetooth Low Energy</strong>. Everything works fine I can connect to the my device read/write characteristics etc.</p>
  <p>The advertisement data more precisely the <strong>device name</strong> changes based on what mode the user has started.<Br>
  Let's say the device has 4 different function (modes). For each mode it changes it's name so my application will know what function the user started.</p>
  <h3>The problem</h3>
  <p>is that <code>BluetoothAdapter</code> <strong>caches</strong> the device name so when I call the <code>getName()</code> method it will return the name <em>it cached the first time the adapter discovered the device</em>.</p>
  <p><strong>Is there a way to clear the <code>BluetoothAdapter</code>'s cache other than restarting the whole adapter?</strong></p>
  <p>I have looked in the documentation but couldn't find anything only a confirmation of the cache existing:<Br>
  <a href="http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#getName%28%29" rel="nofollow noreferrer">http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#getName%28%29</a></p>