title: Heart rate monitor doesn't give feedback
body: <p>I'm trying to get a display of the heart rate of the person wearing the smartwatch (LG Urbane). However the sensor never gives any feedback. I tried multiple solutions on stackoverflow, but none made a difference. I have added a request for permission to use body sensors in both my mobile and my wearable Manifest, but I have never received a popup asking for said permission. Uninstalling the app and reinstalling it didn't help either.</p>
  
  <p>This is my Activity:</p>
  
  <pre><code>public class Monitor extends WearableActivity implements SensorEventListener{
  
      // /Users/Lieven/Library/Android/sdk/platform-tools/adb connect 192.168.1.15
      // /Users/Lieven/Library/Android/sdk/platform-tools/adb -s 192.168.1.15:5555 uninstall be.ehb.dt.finalwork_lievenluyckx_v001
  
  
      private final String LOG_TAG = "Monitor";
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_wear);
          setAmbientEnabled();
  
  
          Log.d(LOG_TAG, "onCreate");
  
  
          //JUISTE LETTERTYPE IN TEXTVIEWS ZETTEN
          Typeface custom_font = Typeface.createFromAsset(getAssets(),  "fonts/brusselineregular.ttf");
  
          TextView monitor_emotion_text = (TextView) findViewById(R.id.monitor_emotion_text);
          TextView monitor_bpm_counter = (TextView) findViewById(R.id.monitor_bpm_counter);
          TextView monitor_bpm_label = (TextView) findViewById(R.id.monitor_bpm_label);
  
          monitor_emotion_text.setTypeface(custom_font);
          monitor_bpm_counter.setTypeface(custom_font);
          monitor_bpm_label.setTypeface(custom_font);
  
  
         /*
         * SENSOR TUTORIAL
         * https://www.tutorialspoint.com/android/android_sensors.htm
         * DOOR tutorialspoint
         * */
  
          SensorManager sensorManager;
          sensorManager = (SensorManager)  this.getSystemService(SENSOR_SERVICE);
  
          Sensor heartRateSensor;
          heartRateSensor = sensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE);
  
          sensorManager.registerListener(this, heartRateSensor, SensorManager.SENSOR_DELAY_NORMAL);
          Log.d(LOG_TAG, "Listener registered");
  
      }
  
      @Override
      public void onSensorChanged(SensorEvent event) {
          //Log.d(LOG_TAG, event.sensor.getType() + "");
          if (event.sensor.getType() == Sensor.TYPE_HEART_RATE) {
              String msg = "" + (int)event.values[0];
              Log.d(LOG_TAG, msg);
          }
          else{
              Log.d(LOG_TAG, "Unknown sensor type");
          }
      }
  
      @Override
      public void onAccuracyChanged(Sensor sensor, int accuracy) {
          Log.d(LOG_TAG, "Accuracy changed to " + accuracy + "");
      }
  
  
      @Override
      public void onEnterAmbient(Bundle ambientDetails) {
          super.onEnterAmbient(ambientDetails);
          updateDisplay();
      }
  
      @Override
      public void onUpdateAmbient() {
          super.onUpdateAmbient();
          updateDisplay();
      }
  
      @Override
      public void onExitAmbient() {
          updateDisplay();
          super.onExitAmbient();
      }
  
      private void updateDisplay() {
          if (isAmbient()) {
             /* CODE VOOR WANNEER HET SCHERM IN STANDBY VALT */
          } else {
  
          }
      }
  
  }
  </code></pre>
  
  <p>This is my Wearable Manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="be.ehb.dt.finalwork_lievenluyckx_v001"&gt;
  
      &lt;uses-feature android:name="android.hardware.type.watch" /&gt;
  
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  
      &lt;uses-permission android:name="android.permission.BODY_SENSORS"/&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/billie_coverdefault"
          android:label="@string/app_name"
          android:supportsRtl="true"
          android:theme="@android:style/Theme.DeviceDefault"&gt;
          &lt;uses-library
              android:name="com.google.android.wearable"
              android:required="false" /&gt;
  
          &lt;activity
              android:name=".Monitor"
              android:label="@string/app_name"
              android:theme="@android:style/Theme.DeviceDefault.Light"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>This is my first time creating an application for a wearable device, and it feels like it's very hard to get any helpful documentation on it.</p>
  
  <p>build.grade (WEAR)</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      allprojects {
          repositories {
              jcenter()
              maven {
                  url "https://maven.google.com"
              }
          }
      }
  
      compileSdkVersion 25
      buildToolsVersion "25.0.1"
      defaultConfig {
          applicationId "be.ehb.dt.finalwork_lievenluyckx_v001"
          minSdkVersion 25
          targetSdkVersion 25
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile 'com.android.support:wear:26.0.0'
      compile 'com.google.android.support:wearable:2.0.3'
      provided 'com.google.android.wearable:wearable:2.0.3'
  }
  </code></pre>
  
  <p>build.gradle (MOBILE)</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  
  android {
      compileSdkVersion 25
      buildToolsVersion "25.0.0"
      defaultConfig {
          applicationId "be.ehb.dt.finalwork_lievenluyckx_v001"
          minSdkVersion 23
          targetSdkVersion 25
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  
          jackOptions {
              enabled true
          }
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
  
      }
  
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  }
  
  dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.1', {
          exclude group: 'com.android.support', module: 'support-annotations'
      })
      wearApp project(':wear')
      compile 'com.google.android.gms:play-services:8.1.0'
      compile 'com.android.support:appcompat-v7:24.1.1'
      compile 'com.mpatric:mp3agic:0.9.0'
      testCompile 'junit:junit:4.12'
  
  
  }
  </code></pre>