<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="de.cweiske.ouya.gamelauncher"
+ package="FIXME_PACKAGE"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="16"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
- <application android:label="FIXME_GAMETITLE">
- <activity android:name=".LaunchGameActivity"
- android:label="FIXME_GAMETITLE"
+ <application android:label="FIXME_TITLE">
+ <activity android:name=".LaunchRomActivity"
+ android:label="FIXME_TITLE"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
-/*
- * Copyright (C) 2012 OUYA, Inc.
- *
- * 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 de.cweiske.ouya.gamelauncher;
+package de.cweiske.ouya.romlauncher;
import java.io.File;
import java.io.FileOutputStream;
import android.os.Bundle;
import android.os.Environment;
-public class LaunchGameActivity extends Activity
+abstract public class LaunchSnesActivity extends Activity
{
- String assetFilename = "FIXME_ASSETFILENAME";
-
+ abstract protected String getAssetFilename();
+
/**
* Called when the activity is first created.
*/
{
super.onCreate(savedInstanceState);
- File extractedFile = extractFile(this.assetFilename);
+ File extractedFile = extractFile(getAssetFilename());
if (extractedFile == null) {
- System.err.println("Failed to extract file " + this.assetFilename);
+ System.err.println("Failed to extract file " + getAssetFilename());
finish();
return;
}