From 78ce790c6efd11cc14238b66777c364747244b09 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Fri, 19 Apr 2024 11:10:50 +0200 Subject: [PATCH] Made it so the app actually start --- code/src/app/src/main/AndroidManifest.xml | 10 ++++++- .../java/com/fitbot/fitbot/MainActivity.java | 13 ++++++++-- .../app/src/main/res/layout/testlayout.xml | 26 +++++++++++++++++++ 3 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 code/src/app/src/main/res/layout/testlayout.xml diff --git a/code/src/app/src/main/AndroidManifest.xml b/code/src/app/src/main/AndroidManifest.xml index 0a552c4..40d2f38 100644 --- a/code/src/app/src/main/AndroidManifest.xml +++ b/code/src/app/src/main/AndroidManifest.xml @@ -8,6 +8,14 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" - android:theme="@style/Theme.Fitbot" /> + android:theme="@style/Theme.Fitbot"> + + + + + + + \ No newline at end of file diff --git a/code/src/app/src/main/java/com/fitbot/fitbot/MainActivity.java b/code/src/app/src/main/java/com/fitbot/fitbot/MainActivity.java index fb641d5..fcce487 100644 --- a/code/src/app/src/main/java/com/fitbot/fitbot/MainActivity.java +++ b/code/src/app/src/main/java/com/fitbot/fitbot/MainActivity.java @@ -1,4 +1,13 @@ package com.fitbot.fitbot; -public class MainActivity { -} +import android.os.Bundle; +import androidx.appcompat.app.AppCompatActivity; + +public class MainActivity extends AppCompatActivity { + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.testlayout); // replace with your layout file + + } +} \ No newline at end of file diff --git a/code/src/app/src/main/res/layout/testlayout.xml b/code/src/app/src/main/res/layout/testlayout.xml new file mode 100644 index 0000000..58611e6 --- /dev/null +++ b/code/src/app/src/main/res/layout/testlayout.xml @@ -0,0 +1,26 @@ + + + + + + + \ No newline at end of file