Pendahuluan Android Sekilas tentang Android
Apa itu Android ? Android adalah sebuah system operasi yang dikembangkan oleh Google untuk perangkat bergerak seperti Smart Phone, Glass, Smart Watch, Smart TV, Smart Car, dll.
Apa itu Android ? A Software platform and operating system for mobile. Based on the Linux kernel. Android was found way back in 2003. It was developed in Palo Alto, California. Android was purchased by the GOOGLE in AUGUST,2005 for US$ 50 million.
Siapa Pembuat Android ?
Open handset alliance (oha) It’s consortium of several companies. This group of companies are allowed to use source code of Android and develop applications. Reason for Nokia not to develop Android Mobiles is Nokia is not part of OHA.
OS Update
Kenapa Android ? Didukung penuh oleh Google Perkembangan yang sangat cepat Mendukung berbagai macam perangkat Jumlah aplikasi paling banyak diantara OS lainnya Global partnership program Open Market Place Dukungan banyaknya Developer Gratis
Perbandingan Jumlah Aplikasi
Kenapa Android App ? Ribuan aplikasi baru yang berkembang sangat cepat Memudahkan berbagai keperluan pengguna Mudah di akses
Java Technology Java dalam Pemrograman Android
Java Family 1. Java Standard Edition (Java SE) ○ Desktop, Client/Server Application 2. Java Enterprise Edition (Java EE) ○ e-bussiness, e-commerce, web based Application 1. Java Micro Edition (Java ME) ○ handheld application : palm, handphone, etc.
Kenapa Android menggunakan Java ? 1. Banyak Programmer yang menguasai Bahasa Pemrograman Java Java mempunyai platform Java ME Bisa berjalan di VM (Virtual Machine) Android digunakan di berbagai platform Memiliki dukungan open source yang besar 2. 3. 4. 5.
Kenapa Android menggunakan Java ?
The Android Software Architecture Linux kernel Libraries Android run time core libraries Dalvik virtual machine application layer application framework
Linux Kernel Device drivers Memory management Process management Networking
Libraries C/C++ libraries Interface through Java Surface manager – Handling UI Windows 2D and 3D graphics Media codes, SQLite, Browser engine
Android Runtime Dalvik VM. Dex files Compact and efficient than class files Limited memory and battery power Core Libraries Java 5 Std edition Collections, I/O etc… Providing most of the functionality available in the core libraries of the Java language.
Application Framework API interface : Activity manager – manages application life cycle Android provides a set of core applications: Email Client SMS Program Calendar Maps Browser Contacts,Etc. All applications are written using the Java language. APIs Data Structures Utilities File Access Network Access Graphics Etc
Android Eclipse IDE SDK Android Mobile Android Device Emulator Android Application Development Android SDK Eclipse IDE Android Mobile Device Android Emulator
Android Development Android Manifest Resource XML Java Source Generated Class Java Compiler Android Libraries .dex File Dalvik VM
Android Development Tool Android Emulator -A virtual mobile device that runs on our computer -use to design, debug, and test our applications in an actual Android run-time environment Android Development Tools Plugin -for the Eclipse IDE – adds powerful extensions to the Eclipse integrated environment Dalvik Debug Monitor Service (DDMS) -Integrated with Dalvik-this tool let us manage processes on an emulator and assists in debugging
Komponen Android Komponen android… Activity Views Intent Broadcast receiver Service Content provider
Komponen android… Acvitivy “User interface yang bisa digunakan untuk berinteraksi antara user dengan aplikasi” activity
Komponen android… views basic building block for user interface components a rectangular area on the screen and is responsible for drawing and event handling Example Button, EditText, Listview,CalendarView,Checkbox,ImageView,TextView etc views
Komponen android… intent a facility for late run-time binding between components in the same or different applications Example 1 : from Login page to dashboard page Example 2: from whatsapp -> activating camera intent
Komponen android… BroadcastReceiver a component that responds to system-wide broadcast announcements Example 1 : Batteray low Example 2 : screen has turned off Example 3 : picture was captured BroadcastReceiver
Komponen android… Service a component that runs in the background to perform long-running operations or to perform work for remote processes No need User Interface Example 1 : music player Example 2 : Tweeter App when fetching new tweet Example 3 : perform file I/O Service
Komponen android… Content Provider A content provider manages a shared set of application data No need User Interface Example 1 : manage User Contact Example 2 : manage SQLite database Content Provider
Multiple Screen Supporting different device Multiple screen