~glmark2-dev/glmark2/canvas-drm-rebranch

« back to all changes in this revision

Viewing changes to android/src/org/linaro/glmark2/MainPreferencesActivity.java

  • Committer: Alexandros Frantzis
  • Date: 2012-07-27 09:55:54 UTC
  • mfrom: (238.1.10 android-option-menu)
  • Revision ID: alexandros.frantzis@linaro.org-20120727095554-idxn01eyssb979k9
Android: Add options menu and implement menu actions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2012 Linaro Limited
 
3
 *
 
4
 * This file is part of the glmark2 OpenGL (ES) 2.0 benchmark.
 
5
 *
 
6
 * glmark2 is free software: you can redistribute it and/or modify it under the
 
7
 * terms of the GNU General Public License as published by the Free Software
 
8
 * Foundation, either version 3 of the License, or (at your option) any later
 
9
 * version.
 
10
 *
 
11
 * glmark2 is distributed in the hope that it will be useful, but WITHOUT ANY
 
12
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
13
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 
14
 * details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License along with
 
17
 * glmark2.  If not, see <http://www.gnu.org/licenses/>.
 
18
 *
 
19
 * Authors:
 
20
 *  Alexandros Frantzis
 
21
 */
 
22
package org.linaro.glmark2;
 
23
 
 
24
import android.os.Bundle;
 
25
import android.preference.PreferenceActivity;
 
26
 
 
27
public class MainPreferencesActivity extends PreferenceActivity {
 
28
    @Override
 
29
    protected void onCreate(Bundle savedInstanceState) {
 
30
        super.onCreate(savedInstanceState);
 
31
        addPreferencesFromResource(R.xml.preferences);
 
32
    }
 
33
}