Android Open Source - VolumeSteps Settings Activity






From Project

Back to project page VolumeSteps.

License

The source code is released under:

GNU General Public License

If you think the Android project VolumeSteps listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * Copyright (C) 2014  P1nGu1n/*ww  w  .  j  a va 2  s.  c  om*/
 *
 * This file is part of VolumeSteps+.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.p1ngu1n.volumesteps;

import android.app.Activity;
import android.os.Bundle;
import android.preference.PreferenceManager;

/**
 * Activity to show the preferences using a fragment.
 */
public class SettingsActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getFragmentManager().beginTransaction().replace(android.R.id.content, new SettingsFragment()).commit();
        PreferenceManager.setDefaultValues(this, R.xml.settings, false);
    }
}




Java Source Code List

com.p1ngu1n.volumesteps.AudioMod.java
com.p1ngu1n.volumesteps.SeekBarDialogPreference.java
com.p1ngu1n.volumesteps.SettingsActivity.java
com.p1ngu1n.volumesteps.SettingsFragment.java