Wait for an active VI before moving service to the foreground.
Update target SDK version to Android API 21 (5.0).