ArViewer  Android Version
Arvos - Augmented reality viewer open source
 All Classes Namespaces Files Functions Variables
ArvosPreferences.java
Go to the documentation of this file.
1 /*
2  Copyright (C) 2013, Peter Graf
3 
4  This file is part of Arvos - AR Viewer Open Source for Android.
5  Arvos is free software.
6 
7  This program is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>.
19 
20  For more information on the AR Viewer Open Source or Peter Graf,
21  please see: http://www.mission-base.com/.
22  */
23 
24 package com.mission_base.arviewer_android;
25 
26 import android.os.Bundle;
27 import android.preference.PreferenceActivity;
28 
35 public class ArvosPreferences extends PreferenceActivity
36 {
37  public static final String PREF_USE_CACHE = "PREF_USE_CACHE";
38 
39  public static final String PREF_IS_AUTHOR = "PREF_IS_AUTHOR";
40  public static final String PREF_AUTHOR_KEY = "PREF_AUTHOR_KEY";
41  public static final String PREF_DEVELOPER_KEY = "PREF_DEVELOPER_KEY";
42 
43  @SuppressWarnings("deprecation")
44  @Override
45  public void onCreate(Bundle savedInstanceState)
46  {
47  super.onCreate(savedInstanceState);
49  {
50  addPreferencesFromResource(R.xml.authorpreferences);
51  }
52  else
53  {
54  addPreferencesFromResource(R.xml.userpreferences);
55  }
56  }
57 }