COMP2100Welcome to Android Studio Lecture 1
(Android Basics)First, lets start by creating our Android Studio project
Make sure to select “Empty Activity” to start with a black pallet.
Now that our project is created, let us go through Android
Studio’s user interface!
Do not worry! we will explain how to run your application in
the next couple slides! ☺
What about running our application? Well first click on the “run” icon on the top right (as was shown in the previous slides)Then you will be greeted with this menu
If you do not have an emulator currently installed, you will need to go through the process ofDownloading and installing it. First, click on the “create new virtual device” as shown in the previous slide.
Congratulations! You should now be able to run
your application!
What if we want to customise the colour
scheme though?
Now let us set up our button so that it opens up
a new activity (page) in our application.
Nice!
Now let us add an animation to our application!
Lets make a star shoot across our new activity.
Now to set up the code
Now to write up the code
Nice!
Now what if we want to pass a value from one activity to
another?
Let us set up an input textbox (Plain Text) in a new activity that
changes the text (textView) of our previous activity.
Input Input
Activity 2 Activity 1
Nice!
That concludes our Android Studio Lecture 1 (Android Basics)
We look forward to seeing what you create!