makalah android
TRANSCRIPT
![Page 1: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/1.jpg)
TUGAS MAKALAH SISTEM OPERASI
ANDROID
NAMA : AYIK MARDIANSAH
NIM / KELAS : 10108829/IF15/VI
MATA KULIAH : SISTEM OPERASI
DOSEN : YULIYANI, S. KOM
JURUSAN TEKNIK INFORMATIKA
FAKULTAS TEKNIK DAN ILMU KOMPUTER
UNIVERSITAS KOMPUTER INDONESIA
Android Page 1
![Page 2: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/2.jpg)
I. What is Android
Android is a software stack for mobile devices that includes an operating system, middleware and key applications. The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language, since 2008. Now android is the best mobile platform application powered by Google, http:
//developer.android.com/.
II. Features
a. Application framework enabling reuse and replacement of components
b. Dalvik virtual machine optimized for mobile devices
c. Integrated browser based on the open source WebKit engine
d. Optimized graphics powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional)
e. SQLite for structured data storage
f. Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)
g. GSM Telephony (hardware dependent)
h. Bluetooth, EDGE, 3G, and WiFi (hardware dependent)
Android Page 2
![Page 3: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/3.jpg)
i. Camera, GPS, compass, and accelerometer (hardware dependent)
j. Rich development environment including a device emulator, tools for debugging, memory and performance profiling, and a plugin for the Eclipse IDE
III. System Architecture
Picture 1: System Architecture
IV. Other Information
Android Page 3
![Page 4: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/4.jpg)
a. Android will ship with a set of core applications including an email client, SMS program, calendar, maps, browser, contacts, and others. All applications are written using the Java programming language.
b. By providing an open development platform, Android offers developers the ability to build extremely rich and innovative applications. Developers are free to take advantage of the device hardware, access location information, run background services, set alarms, add notifications to the status bar, and much, much more.
c. Android includes a set of C/C++ libraries used by various components of the Android system. These capabilities are exposed to developers through the Android application framework. Some of the core libraries such as system C library, Media library, 3D library etc.
V. Getting Started with Android
a. Eclipse installed as GUI editor android platform, go to http://www.eclipse.org/downloads/, Eclipse Classic, GanyMede Packages, Eclipse Classic 3.4.2 / Galileo 3.5
b. Android SDK installed as emulator, basic platform and environment android style, go to http://developer.android.com/sdk/index.html
c. Eclipse Update Manager install plugins for Android Development Tools (ADT) go to link https://dl-ssl.google.com/android/eclipse/, Eclipse – Help – Software Updates, Available Software Tab, Add Site
d. Open Eclipse, Window – Preferences. Configure Android path installation from folder android SDK downloaded earlier.
https://dl-ssl.google.com/android/repository/repository.xml
VI. Life Cycles Android
Android Page 4
![Page 5: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/5.jpg)
Picture 2: Life Cycles
VII. Subject Material Android Training Session
A. Beginner Level; (2 sessions)
1. What is Android
2. Features, System Architecture, Life Cycle Application
3. Getting Started, Requirement Development (ECLIPSE, AVD, ADT, SDK)
4. Create First App (HelloWorld), File Project Structure
5. Create *.apk Installer File Project, Install (command shell)
6. Simple ListView (Object Android XML), Simple Activity, Intent
Android Page 5
![Page 6: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/6.jpg)
B. Intermediate Level; (3 sessions)
1. Customize ListView, Thread, Sync Method – ProgressBar
2. ImageLoader ListView, Simple HTTP Connection
3. Menu, Create Dialog, Icon, Click Listener, get default R icon
4. Simple TabWidget, get content URI list embed, admobView
5. Simple Phone Sim Card Activity, Simple Database SQL Lite
6. WebView, AutoCompleteTextView, CheckBoxView, GalleryView (Object View)
7. Customize Database SQL Lite, RSS Parsing, Simple MusicPlayer
8. SharedPreferences, Simple JSON, using API google
C. Advanced Level; (2 sessions)
1. SMS, Receive SMS, EMAIL other Phone Activities
2. Customize Database SQL Lite, SharedPreferences
3. Access Device (Bluetooth, WIFI, GPS), VideoView
4. Project Advanced MapActivities, GPS access
5. Project Advanced, Mobile News RSS Reader
6. Project Advanced, Translator Powered by Google
7. Project Advanced, Twitter, Facebook API integrated
8. Project Advanced Membership – Client Server Side, Transaction Case
Android Page 6
![Page 7: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/7.jpg)
VIII. First Application (Eclipse GUI opened)
A. Update Environment Site SDK, plug-in ADT (Android Developer Tool)
1. Update Site plug-in ADT (Help -> Software Updates)
Picture 3: Update ADT
Android Page 7
![Page 8: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/8.jpg)
Picture 4: Install - Update ADT
2. Update SDK & AVD Manager (Window -> Preferences)
Picture 5: Install SDK
3. Update SDK & AVD Manager (Window -> Android SDK and AVD Manager)
Picture 6: SDK Manager
Android Page 8
![Page 9: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/9.jpg)
Picture 7: Update SDK Manager
4. Create AVD Emulator
Android Page 9
![Page 10: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/10.jpg)
Picture 8: Create AVD
B. Create The First App -> Helloworld
Picture 9: Create First Project
C. Project Variable Input
a. Project Name: HelloWorld
b. Build Target: Android 2.1
c. Application Name: HelloWorld
d. Package Name: im2.org.sample.main
e. Create Activity: HelloActivity
f. Min SDK Version: 7
Android Page 10
![Page 11: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/11.jpg)
Picture 10: Script HelloActivity
D. Run As Android Application
Picture 11: Run Project in Emulator
Android Page 11
![Page 12: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/12.jpg)
Picture 12: Display Run Project in Emulator
E. Project Structure
Picture 13: Project Structure
Android Page 12
![Page 13: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/13.jpg)
Project Name: HelloWorld
Src => Source Script
Gen => Auto-generate Id Unique Variable Local
Asset => Storage File (movie, sound etc)
Res->drawable => Storage picture layout
Res->layout => XML layout
Res->string => definition variable global
AndroidManifest.xml
F. AndroidManifest XML
Android Page 13
![Page 14: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/14.jpg)
Picture 14: AndroidManifest XML
G. Uses-Permission
AndroidManifest.xml – Permission. http://developer.android.com/reference/android/Manifest.permission.html
Picture 15: Uses-Permission
H. Res -> Layout
Picture 16: Layout Main.xml
Android Page 14
![Page 15: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/15.jpg)
I. Res -> Drawable (lpi, mpi, hpi), gen R.java
Picture 17: Drawable – R.java
J. Src (Code Behind) – HelloActivity.java
Android Page 15
![Page 16: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/16.jpg)
Picture 18: HelloActivity.java
IX. Next First Project (Two Activities Combined)
a. Create layout login.xml (right click in folder res-layout)
Picture 19: Create Layout
Picture 20: Create Layout login.xml
Android Page 16
![Page 17: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/17.jpg)
Picture 21: login.xml script
Picture 22: login.xml graphical layout
Android Page 17
![Page 18: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/18.jpg)
Picture 23: main.xml script
Android Page 18
![Page 19: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/19.jpg)
Picture 24: main.xml graphical layout
Picture 23: HelloActivity (main.xml)
Android Page 19
![Page 20: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/20.jpg)
Picture 24: LoginActivity (1)
Android Page 20
![Page 21: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/21.jpg)
Picture 25: LoginActivity (2)
Android Page 21
![Page 22: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/22.jpg)
Picture 26: AndroidManifest.XML
Picture 27: Running HelloActivity
Android Page 22
![Page 23: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/23.jpg)
Picture 28: Running LoginActivity
Guidance:
http://developer.android.com/resources/tutorials/hello-world.html
Summary:
1. Android Platform Description
2. Installation GUI & Editor
3. Create First Android App
4. Structure Android Project
5. Improvement First Android App
6. Developer Guidance
Android Page 23
![Page 24: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/24.jpg)
Intermediate Android
X. Subject Material
a. Create Installer apk (Android Package)
1. create keystore signature APK installer
2. export, upload, install (cmd shell, direclty)
b. ListView:
1. simple list, thread/async progressbar, customize
2. loading image, button refresh header/footer
c. Menu:
1. create menu, set icon, click listener
2. help dialog, about dialog, get default R icon
d. TabWidget:
1. create simple tab, get content URI
2. list embbed, admobs view (ads)
e. Phone/SIM Card Activity:
1. check SIM Card change, send SMS, receive SMS
2. other info from your phone handset
f. Simple Database SQL Lite
1. Simple Activity Database (List, Add, Delete Data)
XI. Create Installer apk (Android Package)
a. From Project App Eclipse, right click:
Android Page 24
![Page 25: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/25.jpg)
Picture 1: Export Signed Application
Picture 2: Project Check
Android Page 25
![Page 26: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/26.jpg)
Picture 3: Keystore Selection
Picture 4: Create a new keystore
Android Page 26
![Page 27: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/27.jpg)
Picture 5: Key Creation
Picture 6: Destination and key checks
Android Page 27
![Page 28: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/28.jpg)
Picture 7: Save File apk
Picture 8: Running Emulator
Android Page 28
![Page 29: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/29.jpg)
Picture 9: Run Command Shell
Picture 10: Install apk command shell
XII. ListView
Android Page 29
![Page 30: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/30.jpg)
Create new project ( File -> New -> Android Project)
Picture 11: Create New Project ListMainApps
Android Page 30
![Page 31: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/31.jpg)
Picture 12: Structure Project
Picture 13: ListMainApps script
Android Page 31
![Page 32: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/32.jpg)
Picture 14: ListMainApps ArrayAdapter script
Picture 15: Running SecondApps Emulator
Android Page 32
![Page 33: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/33.jpg)
Create Layout XML, right click folder res->layout, create new Android XML
Picture 16: Create Android XML layout
Picture 17: list_view.xml
Create one more layout android XML, list_item.xml
Android Page 33
![Page 34: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/34.jpg)
Picture 18: list_view.xml script
Picture 19: list_item.xml script
Android Page 34
![Page 35: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/35.jpg)
Picture 20: ListMainApps.java (1)
Picture 21: ListMainApps.java (2)
Android Page 35
![Page 36: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/36.jpg)
Picture 22: Running ListMainApps.java
XIII. Create Menu, Set Icon Listener, Get Default R icon
Picture 23: Create Folder Menu From res (1)
Android Page 36
![Page 37: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/37.jpg)
Picture 24: Create Folder Menu From res (2)
Picture 25: Create Folder menu.xml from menu folder
Android Page 37
![Page 38: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/38.jpg)
Picture 27: script menu.xml
Picture 28: script ListMainApps (1)
Android Page 38
![Page 39: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/39.jpg)
Picture 29: script ListMainApps (2)
Picture 30: running ListMainApps
XIV. Create Simple TabWidget
Android Page 39
![Page 40: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/40.jpg)
Create New Class Activity Name: TabActivity.java, right click on package HelloWorld project, New => Class
Picture 31: TabAcitivity
Create New layout XML, right click on res->layout folder, New => Android XML, name: main_tab.xml
Picture 32: main_tab.xml
Android Page 40
![Page 41: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/41.jpg)
Picture 33: AndroidManifest.xml
Picture 34: Running SecondApps
Android Page 41
![Page 42: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/42.jpg)
XV. Simple Database SQL Lite
Create New Project, File -> New Android Project
Picture 35: New Project Database
Android Page 42
![Page 43: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/43.jpg)
Picture 36: DatabaseApps.java
Picture 37: New Class Customer
Create two other classes, CustomerListAdapter.java, Utils.java
Android Page 43
![Page 44: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/44.jpg)
Picture 38: Customer.java
Android Page 44
![Page 45: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/45.jpg)
Picture 39: Create inputdata.xml
Create two others xml layout, listview.xml, listitem.xml
Android Page 45
![Page 46: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/46.jpg)
Picture 40: inputdata.xml, listitem.xml
Android Page 46
![Page 47: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/47.jpg)
Picture 41: listview.xml
Picture 42: CustomerListAdapater(1)
Android Page 47
![Page 48: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/48.jpg)
Picture 43: CustomerListAdapater(2)
Android Page 48
![Page 49: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/49.jpg)
Picture 42: CustomerSQLHelper
Android Page 49
![Page 50: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/50.jpg)
Picture 43: Util.java (1)
Android Page 50
![Page 51: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/51.jpg)
Picture 44: Util.java (2)
DatabaseApps.java
Android Page 51
![Page 52: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/52.jpg)
Android Page 52
![Page 53: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/53.jpg)
Android Page 53
![Page 54: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/54.jpg)
Android Page 54
![Page 55: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/55.jpg)
Picture 45: DatabaseApps.java
Picture 46: AndroidManifest.XML
Android Page 55
![Page 56: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/56.jpg)
Picture 47: Running DatabaseApps
http://developer.android.com/
Android Page 56
![Page 57: Makalah Android](https://reader035.vdocuments.mx/reader035/viewer/2022081413/547bf427b4af9f06698b45a9/html5/thumbnails/57.jpg)
REFERENSI
http://developer.android.com/
http://developer.android.com/resources/tutorials/hello-world.html
Android Page 57