summaryrefslogtreecommitdiff
path: root/samples/ControllerSample/src/com/example/controllersample/GameViewActivity.java
diff options
context:
space:
mode:
authorquddusc <quddusc@google.com>2013-09-11 17:02:20 -0700
committerquddusc <quddusc@google.com>2013-12-06 10:16:35 -0800
commitc522b3124ef111216eba1e94d83ddfb0aaf6ff10 (patch)
tree2274648b63ad89b2c29c460b8729e7c4a561d83e /samples/ControllerSample/src/com/example/controllersample/GameViewActivity.java
parentfe32c3ad53be328d445e8c5ce1d3b1f2bdad7166 (diff)
docs: Code sample for game controller training class.
Change-Id: I14f7046c7fba4f67838513af2ca2abbca4c3561a
Diffstat (limited to 'samples/ControllerSample/src/com/example/controllersample/GameViewActivity.java')
-rw-r--r--samples/ControllerSample/src/com/example/controllersample/GameViewActivity.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/samples/ControllerSample/src/com/example/controllersample/GameViewActivity.java b/samples/ControllerSample/src/com/example/controllersample/GameViewActivity.java
new file mode 100644
index 000000000..aaf8baee6
--- /dev/null
+++ b/samples/ControllerSample/src/com/example/controllersample/GameViewActivity.java
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2013 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.example.controllersample;
+
+import android.app.Activity;
+import android.os.Bundle;
+
+public class GameViewActivity extends Activity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ this.setContentView(R.layout.game_controller_input);
+ }
+
+}