Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Getting started Adroid Eclipse
1. 2012
Getting Started With
Android Development
Using Eclipse Junos Version
Mohammad Syafiq Bin Mhd Hussain
MediaCampus
10/16/2012
2. Contents
What is Android? .......................................................................................................................................... 3
Introduction .............................................................................................................................................. 3
Fahami Struktur Adroid................................................................................................................................. 3
Structure ................................................................................................................................................... 4
The /res folder ...................................................................................................................................... 4
Drawable ............................................................................................................................................... 4
Layouts .................................................................................................................................................. 4
The /src folder ....................................................................................................................................... 4
Installation Eclipse and Android ................................................................................................................... 5
Installing Android Development Tools (ADT) Kepada Eclipse....................................................................... 7
Setting AVD Manager.................................................................................................................................. 10
Rupa Bentuk Emulator didalam Eclipse .............................................................................................. 10
Cara setting AVD Manager ...................................................................................................................... 11
2. Akan keluar seperti dibawah ini.......................................................................................................... 11
Mohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 2
3. What is Android?
Introduction
Android adalah satu “Operation System” (OS) yang dibangunkan oleh Android Inc
menggunakan “Linux” kernel untuk sistem operasi telefon, Android Inc dibeli oleh syarikat
gergasi Google Inc pada tahun 2005 dan ia mula memasuki pasaran pada akhir 2009. Pada May
2010, Android telah menguasai 20% pasaran smartphone di Amerika menandingi Smartphone
yang lain seperti windows os, iphone os dan blackberry os. Oleh kerana ia dibangunkan dari
sistem linux, Google membekalkan Android Operating sistem secara percuma dan ia akan kekal
percuma.
Fahami Struktur Adroid
Setiap aplikasi mesti mempunyai fail AndroidManifest.xml (dengan nama yang tepat) dalam
direktori akar. Mempunyai maklumat penting tentang aplikasi untuk sistem Android, sistem
maklumat mesti mempunyai sebelum ia boleh menjalankan apa-apa kod aplikasi.
Mohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 3
4. Structure
The /res folder
The res folder is where most application resources are stored. The main content categories include drawables,
layouts, and values.
Drawable
Are generally bitmaps images in the form of .PNGs. Drawable can also be nine-patch images, which are
.PNGs with special data in the image that help Android do a better job when stretching the image. Nine-patch
images can be created with the nine-patch tools in the SDK, or with an image creation tool like Photoshop.
Layouts
Is where you define your screens? To view the XML for the layout on screen, click the main.xml tab. Values
are where you define (in XML) your globally used colors, dimensions, strings and styles. The strings.xml file
allows you to add and edit values for your project.
The /src folder
The src folder contains all of your custom source code, grouped into packages. Packages are simply there to
help categorize your source code into logical (and manageable) groups.
Mohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 4
5. Installation Eclipse and Android
1. Download Eclipse di http://www.eclipse.org/downloads/
2. Pastikan downloads latest Eclipse iaitu versi Juno
3. Selepas anda download pastikan anda extract di tempat yang sesuai agar tak menganggu
kerja anda dan memudahkan
Eclipse-java-juno-SR1-win32.zip
Mohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 5
6. 4. Selepas itu baru run eclipse.exe
5. Setting Workspace
#Pastikan save wordspace anda ditempat selemat agar tak kena delete.
Kuarlah bentuk Cantik Camnie
Mohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 6
7. Installing Android Development Tools (ADT) Kepada Eclipse
1. Start Eclipse, then select Help > Install New Software.
2. Click Add, in the top-right corner.
3. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the
following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Mohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 7
8. 1. Click OK.
2. In the Available Software dialog, select the checkbox next to Developer Tools and click next.
Mohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 8
9. 3. In the next window, you'll see a list of the tools to be downloaded. Click Next.
4. Read and accept the license agreements, then click Finish.
5. When the installation completes, restart Eclipse.
Mohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 9
10. Setting AVD Manager
Avd manager adalah tempat dimana kita tetapkan emulator Untuk adroid ,ini kerana kita hendak
memastikan application atau code kita berjalan dengan lancar,kita juga buleh extract file kita Kepada
.apk tetapi perlukan masa Untuk membuatnya jadi kita teruskan dengan emulator dahulu.
Rupa Bentuk Emulator didalam Eclipse
Mohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 10
11. Cara setting AVD Manager
1. Masuk eclipse, pergi ke windows dan pergi ke AVD Manager seperti gambar dibawah.
2. Akan keluar seperti dibawah ini
#Gambar ini menunjukan tiada lagi Emulator yang kita ada ,maka seterusnya kita buat satu emulator
baru Untuk android.
Mohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 11
12. 3. Klik pada new sepeti dibawah
4. Dan set seperti dibawah ini
Name:nama emulator kita
Target:Based API kita,pakai yang biasa je iaitu 2.2
Size:untuk memory sd card korang.
Mohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 12
13. Habis tekan je create AVD maka akan jadi macam bawah ….:) siap emulator kita
Maka abis je tutorial nie mulalah langkah anda untuk belajar android,saya ade
Membuat tutorial dalam bahasa melayu bagi cara koneksi menu dan class jadi jika
berminat call saya Untuk membeli tutorial dalam bentuk pdf bahasa melayu.
Mohammad Syafiq Bin Mhd Hussain
0145065047
Syafiq_apit2002@yahoo.com
Mohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 13