title: How to access heart rate sensor in Android Wearable?
body: <p>I am having problems accessing heart rate sensor on Moto 360. </p>
  
  <p>I tried following things :</p>
  
  <pre><code>Sensor mHeartRateSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE);
  mSensorManager.registerListener(this, mHeartRateSensor, SensorManager.SENSOR_DELAY_NORMAL);
  </code></pre>
  
  <p>and then implement SensorEventListener interface :</p>
  
  <pre><code>@Override
  public void onSensorChanged(SensorEvent event) {
  
          String TAG = "tag";
          Log.i(TAG, "--------------------------");
          Log.i(TAG, msg);
          Log.i(TAG, ""+ event.sensor.getType());
          Log.i("live","--------------");
  </code></pre>
  
  <p>And what is strange to me I do not get any messages at all (not only heart rate).</p>
  
  <p>Also I tried listing all sensors and it does not show Heart rate sensor on the list. </p>
  
  <p>Of course I've added persmissions </p>
  
  <pre><code> &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.example.watchtest" &gt;
  
  &lt;uses-feature android:name="android.hardware.type.watch" /&gt;
  &lt;uses-permission android:name="android.permission.BODY_SENSORS" /&gt;
  </code></pre>
  
  <p>Any ideas ?</p>
  
  <p>thanks.</p>
  
  <p>w.</p>