package com.ibm.mil.smartringer;

import android.app.IntentService;
import android.content.Intent;
import android.media.AudioManager;
import android.util.Log;

public class RingerAdjusterService extends IntentService {
    private static final String TAG = RingerAdjusterService.class.getName();
    private static final String PREFS_NAME = "SmartRingerPrefs";
    private static final String SENS_KEY = "sensitivityLevel";

    public RingerAdjusterService() {
        super(TAG);
    }

    @Override
    protected void onHandleIntent(Intent intent) {
        Log.i(TAG, "Service for adjusting ringer volume has been called");

        // initialize volume adjuster and mute ringer to perform proper noise level detection
        AudioManager audioManager = (AudioManager) getSystemService(AUDIO_SERVICE);
        VolumeAdjuster volumeAdjuster = new VolumeAdjuster(audioManager, AudioManager.STREAM_RING);
        volumeAdjuster.mute();

        // detect noise level for specified sensitivity and adjust ringer volume accordingly
        VolumeAdjuster.SensitivityLevel sensLevel = VolumeAdjuster.getUsersSensitivityLevel(this);
        NoiseMeter noiseMeter = new NoiseMeter();
        volumeAdjuster.adjustVolume(noiseMeter.getMaxAmplitude(), sensLevel);

        stopSelf();
    }

}

@@ -292,136 +292,8 @@
 e();
-%0A    private static final String PREFS_NAME = %22SmartRingerPrefs%22;%0A    private static final String SENS_KEY = %22sensitivityLevel%22;
 %0A%0A  

Remove unnecessary string constants from service