App Development on Android Contents Introduction of Mobile App and Android Key Concepts in Android Designing the User Interface Graphic Multimedia Storing Local Data Introduction of Mobile App Mobile App and Computer Application Introduction of Mobile App User Interface (UI) Introduction of Mobile App User Friendly (UE) Introduction of Android Android and JAVA Introduction of Android Android Software Development Kit Introduction of Android Android Virtual Device Android Each layer uses the services provided by the layers below it. Linux Kernel I. Memory management II. Networking III. Other operating system service Transparent to users Android programs can not make Linux calls directly. Native Libraries Surface Manager: It is a compositing widow manager similar to Vista or Compiz. I. Drawing commands go into off-screen bitmaps, II. Combine bitmaps to form the display the user sees. 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. 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. Native Libraries SQL database A lightweight data engine. Use SQLite for persistent storage in applications. 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. Application Framework Activity Manager Control the life cycle of applications, Maintain a common “backstack” for user navigation. 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. 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. Building Blocks Activities An activity is a user interface screen. Applications can define one or more activities to handle different phases of the program. 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. 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. 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. 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. Resources Animation Color Drawable Layout Menu Values Asset Layout Linear Layout The Linear Layout arranges its children in a single column or a single row. Horizontal Vertical 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. 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. 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. 255 means completely opaque. For example, (127, 255, 0, 255). Animation Shake Res/anim/shake.xml 10 pixels 1 second Res/anim/cycle_7.xml Repeat 7 times Multimedia We can play almost all kinds of multimedia resources in our Android app. Storing Local Data File system in Android Context class I. II. III. IV. deleteFile() fileList( openFileInput() openFileOutput() http://www.pace.edu/seidenberg/mobile-appdevelopment-bowl-2015-challenge/technicalresources-support