Updated documenation
This commit is contained in:
@@ -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
|
### 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
|
```xml
|
||||||
<activity android:name=".MainActivity"
|
<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>
|
</intent-filter>
|
||||||
</activity>
|
</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.
|
Reference in New Issue
Block a user