Android Programming NHAT NGUYEN HUE, 10/2016 1
2 https://play.google.com/store/apps/details?id=junoteam.com.realtimerecording
Part 1 Android Features and Architecture 3
What is Android Linux based OS Open source By Google then OHA (Open Handset Alliance) 4
Features of Android Messaging Web browser Voice-based features Multi-touch 5
Features of Android Multitasking Screen capture Video calling 6
Features of Android Multiple language Accessibility 7
Features of Android Connectivity Media 8
Android App Categories 9
Android applications 10
Android Games 11
Android Versions 12
Android Versions, Codename13
Android Architecture 14
Android Architecture 15
Android Architecture 16
Linux kernel the heart of android architecture device drivers, power, memory, device and resource access. 17
Why Linux kernel Great memory and process management Permission-based security model Proven driver model Support for shared library Open source! 18
Why Linux kernel Kernel Enhancements Alarm Ashmem Low Memory Killer Kernel Debugger Logger Binder (IPC) Power Management: wakelock 19
Native Libraries written in C/C++ support render, storage, web browser, encryption,… 20
Native Libraries 21
Android Runtime Designed to allow multiple VM instances to run at one An interpreter-only virtual machine (no JIT), register based. Optimized for low memory requirements 22
Android Framework provide Android API provides a lot of classes and interfaces for android application development 23
24
Android stack 25
Part 2 Android Application development take a look 26
Application Type Programming Language Perspective 27
Application Type Programming Language Perspective 28
Application Type Programming Language Perspective 29
Application Type Programming Language Perspective 30
Application Types Programming Language Perspective 31
Application Types Programming Language Perspective 32
Application Development Java based Language 33
Environment Setup 34
Application Components 35
Activity Component provides an interface for users like the pages in a website 36
Intent Component like an action 37
Services Component do not have a User Interface run in the background 38
Content Provider Component is a data store enable data sharing 39
Broadcast Receiver Component responds to system-wide broadcast announcements is triggered into action for example: battery low notification 40
Application Life Cycle 41
Application Life Cycle 42
Hello World Application 43
44
45
46
47
48
49
Application Structure 50
REAL TIME AUDIO HOW TO 51
Feature analysis 52
Record Display elapsed time Draw signal wave Draw signal amplitude Features 53
Layout Logic Main activity Fragment 1 Fragment 2 Draw Signal here Time elapsed Record button Signal strength 54
Main activity Main activity Fragment 1 Fragment 2 55
Signal Fragment Main activity Fragment 1 Fragment 2 56
Signal Fragment Main activity Fragment 1 Fragment 2 57
Java Code Main Activity 58
Java Code Signal Fragment 59
Java Code Recorder Fragment 60
Java Code Build and run 61
62
LAST BUT NOT LEAST WHAT WILL BE NEXT? 63
WHAT WILL BE NEXT? • Publish to CH Play • Google Admob 64
WHAT WILL BE NEXT? ANDROID UI DESIGN AND USE CASE 65
CREDIT 1. ELECTRONICS AND TELECOMMUNICATIONS DEPARTMENT - HUE UNIVRSITY OF SCIENCE WEBSITE: http://fet-hue.edu.vn 2. JUNOTEAM COMPANY WEBSITE: http://junoteam.com This slide also contains some illustration images thank to the websites that have reference. 66 https://play.google.com/store/apps/details?id=junoteam.com.realtimerecording
THANK YOU Contact: Nhat Nguyen nhnhat@gmail.com 67

Android Programming Seminar