Presentation is loading. Please wait.

Presentation is loading. Please wait.

App Development on Android

Similar presentations

Presentation on theme: "App Development on Android"— Presentation transcript:

1 App Development on Android

2 Contents Introduction of Mobile App and Android
Key Concepts in Android Designing the User Interface Graphic Multimedia Storing Local Data

3 Introduction of Mobile App
Mobile App and Computer Application

4 Introduction of Mobile App
User Interface (UI)

5 Introduction of Mobile App
User Friendly (UE)

6 Introduction of Android
Android and JAVA

7 Introduction of Android
Android Software Development Kit

8 Introduction of Android
Android Virtual Device

9 Android Each layer uses the services provided by the layers below it.

10 Linux Kernel Memory management Networking
Other operating system service Transparent to users Android programs can not make Linux calls directly.

11 Native Libraries Surface Manager:
It is a compositing widow manager similar to Vista or Compiz. Drawing commands go into off-screen bitmaps, Combine bitmaps to form the display the user sees.

12 Native Libraries 2D and 3D Graphics
2- and 3-Dimensional elements can be combined in a single user interface with Android. The library will use 3D hardware if the device has it or a fast software renderer if it doesn’t.

13 Native Libraries Media Codecs
Android can play video, record and play back audio in a variety of formats. AAC, AVC (H.264), H.263, MP3 and MPEG-4.

14 Native Libraries SQL database A lightweight data engine.
Use SQLite for persistent storage in applications.

15 Application Framework
Application Framework layer provides the high-level building blocks used to create applications. It comes preinstalled with Android, but can be extended with own components as needed. We will discuss the most important parts of the framework.

16 Application Framework
Activity Manager Control the life cycle of applications, Maintain a common “backstack” for user navigation.

17 Application Framework
Content Providers Encapsulate data that needs to be shared between applications. Resource Manager Resources are anything that goes with programs that is not code.

18 Application Framework
Location Manager Track and record the location information of phone. Notification Manager Present events such as arriving messages, appointments, proximity alerts and alien invasions.

19 Building Blocks Activities
An activity is a user interface screen. Applications can define one or more activities to handle different phases of the program.

20 Building Blocks Intents
An intent is a mechanism for describing a specific action, such as “pick a photo,” “phone home,” or “open the pod bay doors.” In Android, just about everything goes through intents.

21 Building Blocks Services
A service is a task that runs in the background without the user’s direct interaction. For example, the music may be started by an activity, but you want it to keep playing even when the user has moved on to a different program.

22 Building Blocks Content Providers
A content provider is a set of data wrapped up in a custom API to read and write it. This is the best way to share global data between applications. For example, For example, Google provides a content provider for contacts. All the information in contacts can be shared by any application that wants to use it.

23 Resources Resources are the additional files and static content that your code uses, such as bitmaps, layout definitions, user interface strings, animation instructions, and more.

24 Resources Animation Color Drawable Layout Menu Values Asset

25 Layout Linear Layout The Linear Layout arranges its children in a single column or a single row. Horizontal Vertical

26 Layout Relative Layout
The Relative Layout is a Layout where the positions of the children can be described in relation to each other or to the parent.

27 Layout Relative Layout
The Relative Layout is a Layout where the positions of the children can be described in relation to each other or to the parent.

28 Graphics Color Alpha, Red, Green, Blue (ARGB).
Each of them have 256 possible values. Alpha is a measure of transparency. 0 means completely transparent, whatever RGB are means completely opaque. For example, (127, 255, 0, 255).

29 Animation Shake Res/anim/shake.xml Res/anim/cycle_7.xml 10 pixels
1 second Repeat 7 times

30 Multimedia We can play almost all kinds of multimedia resources in our Android app.

31 Storing Local Data Context class File system in Android deleteFile()
fileList( openFileInput() openFileOutput() development-bowl-2015-challenge/technical- resources-support

Download ppt "App Development on Android"

Similar presentations

Ads by Google