Makalah Android
Makalah Android
Makalah Android
JURUSAN TEKNIK INFORMATIKA FAKULTAS TEKNIK DAN ILMU KOMPUTER UNIVERSITAS KOMPUTER INDONESIA
Android
Page 1
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.
a. b. c. d. e. f. g. h. i.
Android
Features Application framework enabling reuse and replacement of components Dalvik virtual machine optimized for mobile devices Integrated browser based on the open source WebKit engine Optimized graphics powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional) SQLite for structured data storage Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF) GSM Telephony (hardware dependent) Bluetooth, EDGE, 3G, and WiFi (hardware dependent) Camera, GPS, compass, and accelerometer (hardware dependent)
Page 2
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
IV.
a.
Other Information 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.
Page 3
Android
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. 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.
c.
b. c.
d.
VI.
Android
Page 4
B. Intermediate Level; (3 sessions) 1. 2. 3. 4. 5. 6. Customize ListView, Thread, Sync Method ProgressBar ImageLoader ListView, Simple HTTP Connection Menu, Create Dialog, Icon, Click Listener, get default R icon Simple TabWidget, get content URI list embed, admobView Simple Phone Sim Card Activity, Simple Database SQL Lite WebView, AutoCompleteTextView, CheckBoxView, GalleryView (Object View) Customize Database SQL Lite, RSS Parsing, Simple MusicPlayer SharedPreferences, Simple JSON, using API google
7. 8.
C. Advanced Level; (2 sessions) 1. 2. 3. 4. 5. 6. 7. 8. SMS, Receive SMS, EMAIL other Phone Activities Customize Database SQL Lite, SharedPreferences Access Device (Bluetooth, WIFI, GPS), VideoView Project Advanced MapActivities, GPS access Project Advanced, Mobile News RSS Reader Project Advanced, Translator Powered by Google Project Advanced, Twitter, Facebook API integrated Project Advanced Membership Client Server Side, Transaction Case
Android
Page 6
Android
Page 7
Picture 4: Install - Update ADT 2. Update SDK & AVD Manager (Window -> Preferences)
3. Update SDK & AVD Manager (Window -> Android SDK and AVD Manager)
Android
Page 9
Android
Page 10
Picture 9: Create First Project C. Project Variable Input a. b. c. d. e. f. Project Name: HelloWorld Build Target: Android 2.1 Application Name: HelloWorld Package Name: im2.org.sample.main Create Activity: HelloActivity Min SDK Version: 7
Android
Page 11
Android
Page 12
Android
Page 13
Project Name: HelloWorld Src Gen Asset Res->drawable Res->layout Res->string => Source Script => Auto-generate Id Unique Variable Local => Storage File (movie, sound etc) => Storage picture layout => XML layout => definition variable global
AndroidManifest.xml
F. AndroidManifest XML
Android
Page 14
Android
Page 16
IX.
Next First Project (Two Activities Combined) a. Create layout login.xml (right click in folder res-layout)
Android
Page 17
Android
Page 18
Android
Page 20
Android
Page 21
Android
Page 22
Android
Page 23
Guidance: http://developer.android.com/resources/tutorials/hello-world.html
Summary: 1. 2. 3. 4. 5. 6. Android Platform Description Installation GUI & Editor Create First Android App Structure Android Project Improvement First Android App Developer Guidance
Android
Page 25
Intermediate Android
X.
a.
Subject Material Create Installer apk (Android Package) 1. 2. b. create keystore signature APK installer export, upload, install (cmd shell, direclty)
ListView: 1. 2. simple list, thread/async progressbar, customize loading image, button refresh header/footer
c.
Menu: 1. 2. create menu, set icon, click listener help dialog, about dialog, get default R icon
d.
TabWidget: 1. 2. create simple tab, get content URI list embbed, admobs view (ads)
e.
Phone/SIM Card Activity: 1. 2. check SIM Card change, send SMS, receive SMS other info from your phone handset
f.
Simple Database SQL Lite 1. Simple Activity Database (List, Add, Delete Data)
Android
Page 26
XI.
a.
Create Installer apk (Android Package) From Project App Eclipse, right click:
Android
Page 29
Android
Page 30
Android
Page 31
XII. ListView
Create new project ( File -> New -> Android Project)
Android
Page 32
Android
Page 33
Android
Page 34
Create Layout XML, right click folder res->layout, create new Android XML
Picture 17: list_view.xml Create one more layout android XML, list_item.xml
Android
Page 35
Android
Page 36
Android
Page 37
Android
Page 38
Android
Page 40
Android
Page 41
Picture 31: TabAcitivity Create New layout XML, right click on res->layout folder, New => Android XML, name: main_tab.xml
Android
Page 42
Android
Page 44
Picture 37: New Class Customer Create two other classes, CustomerListAdapter.java, Utils.java
Android Page 45
Picture 39: Create inputdata.xml Create two others xml layout, listview.xml, listitem.xml
Android Page 47
Android
Page 48
Android
Page 49
Android
Page 53
Android
Page 54
Android
Page 55
Android
Page 56
http://developer.android.com/
Android Page 58
REFERENSI
http://developer.android.com/ http://developer.android.com/resources/tutorials/hello-world.html
Android
Page 59