title: unable to access the SENSOR_SERVICE inside fragment
body: <p>This used to be like </p>
  
  <pre><code>sSensorManager = (SensorManager)this.getSystemService(SENSOR_SERVICE);
  </code></pre>
  
  <p>in an activity , now in fragment I am making it like below</p>
  
  <pre><code>sSensorManager = (SensorManager)rootView.getContext().getSystemService(SENSOR_SERVICE);
  </code></pre>
  
  <p>And there I get redline below SENSOR_SERVICE like below</p>
  
  <pre><code>SENSOR_SERVICE cannot be resolved to a variable
  </code></pre>