The starting Android app for this course is named "CodeRunner". It's designed to let you execute arbitrary Java code and log messages to the app's primary screen. I'll show you how to open the CodeRunner project in Android Studio, and review its design and implementation. Then throughout the course I'll describe variations on the app that I'm using to demonstrate particular design patterns and APIs.
- [Voiceover] In this course's demonstrations…I'll be using a very simple Android app named CodeRunner.…Its goal is to let you run some Java code…and then output some results to the screen.…It doesn't have the complications…of building a full-scale real word production application.…I'll describe how this app is put together…by opening the basic version from the exercise files.…From Android Studio's Welcome screen…I'll open an existing application,…then I'll press Command + D or Control + D…to go to the Desktop,…then to my Exercise Files to Ch01,…to folder 01_03,…and then I'll select and open the CodeRunner application.…
The first time you open any of these applications…it might take a little while…while Android Studio downloads certain components.…But after that they should open fairly quickly.…Once the project is open I'll go to the Project window,…to the Java folder and open the MainActivity class.…In this activity I'm using a layout called activity_main.…And that layout file has a number of components.…It has a ScrollView container wrapped around a TextView.…
Watch these Java tutorials to learn smarter, more efficient methods for Android app development.
- Preparing the development environment
- Packaging and running Android apps
- Optimizing Java code for Android
- Implementing event handler interfaces
- Defining custom callback methods
- Working with the Android SDK's Java packages
- Storing data
- Reading text files
- Parsing JSON and XML data
- Managing device sensors
- Playing audio