From 3af435116fe8c9bfc3c2b7624f3362ca38f79db0 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Thu, 25 Apr 2024 21:29:32 +0200 Subject: [PATCH] Updated documenation --- docs/documentation/android/appSetup.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/documentation/android/appSetup.md b/docs/documentation/android/appSetup.md index f19693d..16835af 100644 --- a/docs/documentation/android/appSetup.md +++ b/docs/documentation/android/appSetup.md @@ -23,9 +23,13 @@ public class MainActivity extends AppCompatActivity { } } ``` +With setContentView you can set the layout file that you made earlier. +``` java + setContentView(R.layout.activity_main); +``` ### Manifest -For the app to be able to build you need to add the activity to the manifest file. You can do this by adding this to the manifest file. +For the app to be able to build you need to add the activity class to the manifest file. ```xml ``` -The class name that is ran first is defined in the first line of the class. \ No newline at end of file +In this instance MainActivity is the first class that is ran. \ No newline at end of file