Introduction To Android
Introduction To Android
▪ Hate Java?
– Try Kotlin or both Java & Kotlin
Android ‘OS’ Overview
▪ Operating System based on Linux
▪ Code compilation workflow:
javac
.class files
dx
classes.dex aapt
.jar files .apk file
resource files
▪ Android Runtime (ART):
dex2oat Machine code
classes.dex
(ELF shared object)
https://github.com/dogriffiths/HeadFirstAndroid/wiki/How-Android-Apps-are-Built-and-Run
Android Environment Setup
What we need?
- Java compiler and
libraries Install Oracle Java 11 JDK
(download link)
▪ Configuring Environmental
Variables on Windows
Introducing Android Studio
▪ In the command-line window, issue the following command and press Enter:
java –version
Introducing Android Studio
▪ Once the download is complete, execute the file you just downloaded.
Introducing Android Studio
firstname.ulster.ac.uk
Creating Your First Project: HelloWorld
The Android Virtual Device Manager allows you to create Android Virtual
Devices (AVDs), which you can then run to emulate a device on your
computer.
Creating Your First Project: HelloWorld
▪ Emulator
Creating Your First Project: HelloWorld
3. S.B. Zakhour, S. Kannan, and R. Gallardo, The Java® Tutorial: A Short Course on the Basics, 5th ed., Addison–Wesley, 2013.
Online: http://proquest.safaribooksonline.com.proxy.lib.
ohio–state.edu/book/programming/java/9780132761987
6. Oracle, http://docs.oracle.com/javase/1.5.0/docs/api/index.html
7. Wikipedia, https://en.wikipedia.org/wiki/Vehicle_Identification_Number
8. Nielsen Co., “Smartphone Milestone: Half of Mobile Subscribers Ages 55+ Own Smartphones”, 22 Apr. 2014,
http://www.nielsen.com/us/en/insights/news/2014/
smartphone-milestone-half-of-americans-ages-55-own-smartphones.html
46
References (2)
10. http://bcs.wiley.com/he-bcs/Books?action=index&itemId=1118087887&bcsId=7006
11. B. Goetz, T. Peierls, J. Bloch, J. Bowbeer, D. Holmes, and D. Lea, Java Concurrency in Practice, Addison-
Wesley, 2006, online at http://proquest.safaribooksonline.com/book/programming/java/0321349601
12. https://developer.android.com/guide/components/activities.html
13. https://developer.android.com/guide/topics/ui/declaring-layout.html#CommonLayouts
14. https://cloud.genymotion.com/page/doc/#collapse4
15. http://blog.zeezonline.com/2013/11/install-google-play-on-genymotion-2-0/
47