Updated documenation

This commit is contained in:
2024-04-25 21:29:32 +02:00
parent f55a9c7d8f
commit 3af435116f

View File

@@ -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
<activity android:name=".MainActivity"
@@ -36,4 +40,4 @@ For the app to be able to build you need to add the activity to the manifest fil
</intent-filter>
</activity>
```
The class name that is ran first is defined in the first line of the class.
In this instance MainActivity is the first class that is ran.