Mobile Programming Dr Msury Mahunnah email msury mahunnahifm
Mobile Programming Dr. Msury Mahunnah e-mail: msury. mahunnah@ifm. ac. tz course website: https: //mahunnah. wordpress. com/
Lecture 2 Getting Started
Outline • • System requirements Installing the Java Development Kit (JDK) Installing Android Studio Installing Android SDK packages
System requirements • Windows Vista (32 -bit or 64 -bit) or later • Mac OS X 10. 5. 8 or later (Intel based systems only) • Linux systems with version 2. 11 or later of GNU C Library (glibc) • Minimum of 2 GB of RAM (4 GB is preferred) • 1. 5 GB of available disk space
Installing the JDK • Android SDK & Android apps are developed using Java programming language • Requires Java Development Kit (JDK) (not JRE) • Version 6 or 7
• http: //www. oracle. com/technetwork/javase/downloads/index. html
Downloading and Installing Android Studio http: //developer. android. com/sdk/index. html
Android Studio setup • First time you can choose to import settings from an existing installation
Installing the latest Android SDK package • By default only a set of packages are installed • Any missing or additional packages can be installed using the Android SDK Manager • Launched from Android Studio – Configure -> SDK Manager
Welcome screen
Android project structure
Creating virtual devices for Testing • Tools -> Android -> AVD Manager
Select device
System image
Finalize configuration
Launch virtual device
Run application • Run -> Run app
- Slides: 28