title: Will startService() still work if my app targeting nougat devices
body: <p>This is how i start Location service.</p>
  
  <pre><code>private void initLocationService() {
  
      locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
  
      if(getPermissions(android.Manifest.permission.ACCESS_FINE_LOCATION,GET_LOCATION_PERMISSION)){
          startService(new Intent(HomeActivity.this, LocationUpdateService.class));
      }
  }
  </code></pre>
  
  <p>and in <code>LocationUpdateService</code>, i start it as <code>STICKY</code> service. So it keeps working in the background. </p>
  
  <pre><code>public class LocationUpdateService extends Service implements
          LocationListener,
          GoogleApiClient.ConnectionCallbacks,
          GoogleApiClient.OnConnectionFailedListener,
          IServiceResponse {
  
  
      @Override
      public int onStartCommand(Intent intent, int flags, int startId) {
          Log.i(TAG, "onStartCommand: ");
          mLocationRequest = new LocationRequest();
          mLocationRequest.setInterval(BACKGROUND_INTERVAL);
          mLocationRequest.setFastestInterval(BACKGROUND_INTERVAL);
          mLocationRequest.setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY);
  
          super.onStartCommand(intent, flags, startId);
          return START_STICKY;
      }
  </code></pre>
  
  <p>As my app is currently targeting <code>Api 25</code> <code>(Nougat)</code>, what changes do i need to make in this particular service to make this work in <code>Oreo</code></p>
  
  <p>I still don't have access to <code>startForegroundService()</code> method when using <code>compileSdkVersion 25</code>. </p>
  
  <p>These are my <code>gradle</code> settings.</p>
  
  <pre><code>compileSdkVersion 25
  buildToolsVersion "25.0.3"
  
  defaultConfig {
  
      minSdkVersion 21
      targetSdkVersion 25
  }
  </code></pre>