From 65f033f8561fb6a628c73f0b061c8b35e78b944f Mon Sep 17 00:00:00 2001 From: BreadFish64 Date: Mon, 8 Oct 2018 17:01:05 -0500 Subject: [PATCH] android: create bare application --- src/android/app/src/main/AndroidManifest.xml | 39 +++++++++++++++ .../org/citra_emu/citra/CitraApplication.java | 9 ++++ .../citra_emu/citra/ui/main/MainActivity.java | 18 +++++++ .../app/src/main/res/layout/activity_main.xml | 50 +++++++++++++++++++ 4 files changed, 116 insertions(+) create mode 100644 src/android/app/src/main/AndroidManifest.xml create mode 100644 src/android/app/src/main/java/org/citra_emu/citra/CitraApplication.java create mode 100644 src/android/app/src/main/java/org/citra_emu/citra/ui/main/MainActivity.java create mode 100644 src/android/app/src/main/res/layout/activity_main.xml diff --git a/src/android/app/src/main/AndroidManifest.xml b/src/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000..d4ca5f63e2 --- /dev/null +++ b/src/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/android/app/src/main/java/org/citra_emu/citra/CitraApplication.java b/src/android/app/src/main/java/org/citra_emu/citra/CitraApplication.java new file mode 100644 index 0000000000..07a7828535 --- /dev/null +++ b/src/android/app/src/main/java/org/citra_emu/citra/CitraApplication.java @@ -0,0 +1,9 @@ +// Copyright 2018 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +package org.citra_emu.citra; + +import android.app.Application; + +public class CitraApplication extends Application {} diff --git a/src/android/app/src/main/java/org/citra_emu/citra/ui/main/MainActivity.java b/src/android/app/src/main/java/org/citra_emu/citra/ui/main/MainActivity.java new file mode 100644 index 0000000000..97b36f0c11 --- /dev/null +++ b/src/android/app/src/main/java/org/citra_emu/citra/ui/main/MainActivity.java @@ -0,0 +1,18 @@ +// Copyright 2018 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +package org.citra_emu.citra.ui.main; + +import android.os.Bundle; +import android.support.v7.app.AppCompatActivity; + +import org.citra_emu.citra.R; + +public final class MainActivity extends AppCompatActivity { + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + } +} diff --git a/src/android/app/src/main/res/layout/activity_main.xml b/src/android/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000000..d13b8e03ef --- /dev/null +++ b/src/android/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + +