320 likes | 328 Views
Learn about Android, a software platform and operating system developed by Google for mobile devices such as smartphones, smartwatches, and smart TVs. Discover its features, benefits, and why it uses Java for programming.
E N D
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.
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.
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
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 StandardEdition(Java SE) ○ Desktop,Client/ServerApplication 2. JavaEnterpriseEdition(JavaEE) ○ e-bussiness,e-commerce, webbasedApplication 1. JavaMicroEdition(JavaME) ○ handheldapplication: 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.
Linux kernel • Libraries • Android run time • core libraries • Dalvik virtual machine • application layer • application framework The Android Software Architecture
Device drivers • Memory management • Process management • Networking Linux Kernel
C/C++ libraries • Interface through Java • Surface manager – Handling UI Windows • 2D and 3D graphics • Media codes, SQLite, Browser engine Libraries
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. Android Runtime
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 Application Development Android SDK Eclipse IDE Android Mobile Device Android Emulator
Android Development Java Source Android Manifest Generated Class Java Compiler .dex File Dalvik VM Resource XML Android Libraries
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… 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