Presentation is loading. Please wait.

Presentation is loading. Please wait.

Development-Introduction

Similar presentations


Presentation on theme: "Development-Introduction"— Presentation transcript:

1 Development-Introduction
Android Application Development-Introduction

2 Overview What is Android? Why teach Android?
What do you need in order to learn Android? Hello, Android

3 What is Android?

4 What is Android? An open source Linux-based operating system intended for mobile computing platforms Includes a Java API for developing applications It is not a device or product

5 Why teach Android?

6 Mobile Application development
Smart Phones Internet access anywhere Social networking Millions of mobile users Open standards

7 Android vs. iPhone Java vs. Objective-C
Direct install vs. Marketplace vs. App Store Open source?

8 What Should Students Already Know?
Java! inheritance, method overriding interfaces, casting exceptions debugging reading API documentation

9 Do I Need Phones? You can use emulator-the emulator that is part of the Android toolset for Eclipse is quite good (though a bit slow) You can use real phones to test

10 Skills Will Students Learn?
Separation of UI design and functionality XML and resource files Events and Listeners Callback methods Threads

11 Online Resources developer.android.com
code.google.com/p/apps-for-android/ stackoverflow.com videos from Google I/O conferences

12 “Hello, Android”

13 Creating Your First Android App
Set up development environment Create Android project Run it in the emulator

14 1. Developing tools Install Android Studio
Install Android SDK (Android libraries) Install ADT plugin (Android development tools) Create AVD (Android virtual device)

15 Setup up Android Studio

16 Setup up Android Studio

17 Setup up Android Studio

18 Setup up Android Studio

19 Setup up Android Studio

20 New Project

21 New Project

22 New Project

23 New Project

24 New Project

25 New Project

26 Project Structure Each project in Android Studio contains one or more modules with source code files and resource files. Types of modules include: Android app modules Library modules Google App Engine modules Each app module contains the following folders: Manifests:Contains the AndroidManifest.xml file. Java:Contains the java source code files,including Junit test code. Res:Contains all non-code resources,such as xml layouts,UI strings, and bitmap images.

27 3. Run the Android Application
Run → Run (or click the “Run” button) Select “Android Application” The emulator may take a few minutes to start, so be patient! You don't need to restart the emulator when you have a new version of your application

28 select Run > Create Virtual Device

29 Choose Virtual Device

30 Choose Virtual Device

31 Run on the emulator

32 Run on a Real Device 1.install the Android USB device driver
2.plug the device into computer using USB cable


Download ppt "Development-Introduction"

Similar presentations


Ads by Google