Back to project page Snapshare.
The source code is released under:
GNU General Public License
If you think the Android project Snapshare listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.amcgavin.snapshare; /**/*w w w .java 2 s .c o m*/ SettingsActivity.java created on 22/12/13. Copyright (C) 2013 Alec McGavin <alec.mcgavin@gmail.com> This file is part of Snapshare. Snapshare 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. Snapshare 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 a gazillion times. If not, see <http://www.gnu.org/licenses/>. */ import net.cantab.stammler.snapshare.R; import android.app.Activity; import android.os.Bundle; import android.preference.PreferenceManager; /** * Activity that gets called when the icon is clicked. * */ public class SettingsActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getFragmentManager().beginTransaction().replace(android.R.id.content, new Settings()).commit(); PreferenceManager.setDefaultValues(this, R.xml.prefs, false); } }