title: Android: Update bluetooth rssi every second
body: <p>I'm trying to display the bluetooth signal strength (rssi) evry second (<code>Timer()</code>) from detected device but i couldn't call <code>onRecive()</code> multiple times because <a href="http://developer.android.com/reference/android/content/BroadcastReceiver.html" rel="nofollow">Receiver Lifecycle</a>.</p>
  
  <p>I need a way(idea) to refresh the RSSI, or some other way to measure a signal every second?
  Is it easier if the device is connected?</p>
  
  <p>App gives a constant value always:</p>
  
  <blockquote>
    <p>DeviceName 2b:3c:d5:6c:3x:0X 40 db </p>
  </blockquote>
  
  <p>Part of the app stored in <code>Timer()</code> method:</p>
  
  <pre><code>    BroadcastReceiver mReceiver = new BroadcastReceiver() {
      public void onReceive(Context context, Intent intent) {
          String action = intent.getAction();
          // When discovery finds a device
          if (BluetoothDevice.ACTION_FOUND.equals(action)) {
              // Get the BluetoothDevice object from the Intent
              BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
              short rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI,Short.MIN_VALUE);
              // Add the name and address to an array adapter to show in a ListView
  
             msg = device.getName() + " " + device.getAddress() + " " +rssi+ " db";
  
          }
  
  }};
  </code></pre>