SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Downloaden Sie, um offline zu lesen
2012


   Getting Started With
   Android Development
   Using Eclipse Junos Version




                                 Mohammad Syafiq Bin Mhd Hussain
                                                   MediaCampus
                                                      10/16/2012
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
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
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
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
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
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
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
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
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
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
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
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

Weitere ähnliche Inhalte

Kürzlich hochgeladen

PENTAKSIRAN dalam pendidikan tajuk enam hingga lapan.pdf
PENTAKSIRAN dalam pendidikan tajuk enam hingga lapan.pdfPENTAKSIRAN dalam pendidikan tajuk enam hingga lapan.pdf
PENTAKSIRAN dalam pendidikan tajuk enam hingga lapan.pdf1370zulaikha
 
PBKK3143 TUTO M4 asas penyelidikan dalam pendidikan
PBKK3143 TUTO M4 asas penyelidikan dalam pendidikanPBKK3143 TUTO M4 asas penyelidikan dalam pendidikan
PBKK3143 TUTO M4 asas penyelidikan dalam pendidikangipgp24202619
 
Slide sejarah tingkatan5 bab5 nota ringkas
Slide sejarah tingkatan5 bab5 nota ringkasSlide sejarah tingkatan5 bab5 nota ringkas
Slide sejarah tingkatan5 bab5 nota ringkasAdiebsulhy55
 
Topik 8 - PERANAN ETIKA DAN PERADABAN MENDOKONG TANGGUNGJAWAB SOSIAL DI MALAY...
Topik 8 - PERANAN ETIKA DAN PERADABAN MENDOKONG TANGGUNGJAWAB SOSIAL DI MALAY...Topik 8 - PERANAN ETIKA DAN PERADABAN MENDOKONG TANGGUNGJAWAB SOSIAL DI MALAY...
Topik 8 - PERANAN ETIKA DAN PERADABAN MENDOKONG TANGGUNGJAWAB SOSIAL DI MALAY...NursKitchen
 
1 rbt kandungan-dan-cadangan-rekod-pembelajaran-dan-pemudahcaraan-formula-a-k...
1 rbt kandungan-dan-cadangan-rekod-pembelajaran-dan-pemudahcaraan-formula-a-k...1 rbt kandungan-dan-cadangan-rekod-pembelajaran-dan-pemudahcaraan-formula-a-k...
1 rbt kandungan-dan-cadangan-rekod-pembelajaran-dan-pemudahcaraan-formula-a-k...MDFARIDSHAFARIBINHAR
 
Reka Bentuk dan Teknologi_Tingkatan_2-1-31-10-31.pdf
Reka Bentuk dan Teknologi_Tingkatan_2-1-31-10-31.pdfReka Bentuk dan Teknologi_Tingkatan_2-1-31-10-31.pdf
Reka Bentuk dan Teknologi_Tingkatan_2-1-31-10-31.pdfMDFARIDSHAFARIBINHAR
 
KISI-KISI SOAL DAN KARTU SOAL KELAS Xi semester genap
KISI-KISI SOAL DAN KARTU SOAL KELAS Xi semester genapKISI-KISI SOAL DAN KARTU SOAL KELAS Xi semester genap
KISI-KISI SOAL DAN KARTU SOAL KELAS Xi semester genapDewiUmbar
 
Buku Program Pelancaran Nilam SMK Johor Bahru.pptx
Buku Program Pelancaran Nilam SMK Johor Bahru.pptxBuku Program Pelancaran Nilam SMK Johor Bahru.pptx
Buku Program Pelancaran Nilam SMK Johor Bahru.pptxHussalwaHussain1
 
Reka Bentuk Teknologi Nota Tingkatan satu1
Reka Bentuk  Teknologi Nota Tingkatan satu1Reka Bentuk  Teknologi Nota Tingkatan satu1
Reka Bentuk Teknologi Nota Tingkatan satu1MDFARIDSHAFARIBINHAR
 
TUGASAN MODUL 4 TS25 RUJUKAN SEKOLAH TERKINI
TUGASAN MODUL 4 TS25 RUJUKAN SEKOLAH TERKINITUGASAN MODUL 4 TS25 RUJUKAN SEKOLAH TERKINI
TUGASAN MODUL 4 TS25 RUJUKAN SEKOLAH TERKINIZAINABAFINABINTISUHA
 
Topik 5 - PEMBINAAN PERADABAN MAJMUK DI MALAYSIA.pdf
Topik 5 - PEMBINAAN PERADABAN MAJMUK DI MALAYSIA.pdfTopik 5 - PEMBINAAN PERADABAN MAJMUK DI MALAYSIA.pdf
Topik 5 - PEMBINAAN PERADABAN MAJMUK DI MALAYSIA.pdfNursKitchen
 

Kürzlich hochgeladen (11)

PENTAKSIRAN dalam pendidikan tajuk enam hingga lapan.pdf
PENTAKSIRAN dalam pendidikan tajuk enam hingga lapan.pdfPENTAKSIRAN dalam pendidikan tajuk enam hingga lapan.pdf
PENTAKSIRAN dalam pendidikan tajuk enam hingga lapan.pdf
 
PBKK3143 TUTO M4 asas penyelidikan dalam pendidikan
PBKK3143 TUTO M4 asas penyelidikan dalam pendidikanPBKK3143 TUTO M4 asas penyelidikan dalam pendidikan
PBKK3143 TUTO M4 asas penyelidikan dalam pendidikan
 
Slide sejarah tingkatan5 bab5 nota ringkas
Slide sejarah tingkatan5 bab5 nota ringkasSlide sejarah tingkatan5 bab5 nota ringkas
Slide sejarah tingkatan5 bab5 nota ringkas
 
Topik 8 - PERANAN ETIKA DAN PERADABAN MENDOKONG TANGGUNGJAWAB SOSIAL DI MALAY...
Topik 8 - PERANAN ETIKA DAN PERADABAN MENDOKONG TANGGUNGJAWAB SOSIAL DI MALAY...Topik 8 - PERANAN ETIKA DAN PERADABAN MENDOKONG TANGGUNGJAWAB SOSIAL DI MALAY...
Topik 8 - PERANAN ETIKA DAN PERADABAN MENDOKONG TANGGUNGJAWAB SOSIAL DI MALAY...
 
1 rbt kandungan-dan-cadangan-rekod-pembelajaran-dan-pemudahcaraan-formula-a-k...
1 rbt kandungan-dan-cadangan-rekod-pembelajaran-dan-pemudahcaraan-formula-a-k...1 rbt kandungan-dan-cadangan-rekod-pembelajaran-dan-pemudahcaraan-formula-a-k...
1 rbt kandungan-dan-cadangan-rekod-pembelajaran-dan-pemudahcaraan-formula-a-k...
 
Reka Bentuk dan Teknologi_Tingkatan_2-1-31-10-31.pdf
Reka Bentuk dan Teknologi_Tingkatan_2-1-31-10-31.pdfReka Bentuk dan Teknologi_Tingkatan_2-1-31-10-31.pdf
Reka Bentuk dan Teknologi_Tingkatan_2-1-31-10-31.pdf
 
KISI-KISI SOAL DAN KARTU SOAL KELAS Xi semester genap
KISI-KISI SOAL DAN KARTU SOAL KELAS Xi semester genapKISI-KISI SOAL DAN KARTU SOAL KELAS Xi semester genap
KISI-KISI SOAL DAN KARTU SOAL KELAS Xi semester genap
 
Buku Program Pelancaran Nilam SMK Johor Bahru.pptx
Buku Program Pelancaran Nilam SMK Johor Bahru.pptxBuku Program Pelancaran Nilam SMK Johor Bahru.pptx
Buku Program Pelancaran Nilam SMK Johor Bahru.pptx
 
Reka Bentuk Teknologi Nota Tingkatan satu1
Reka Bentuk  Teknologi Nota Tingkatan satu1Reka Bentuk  Teknologi Nota Tingkatan satu1
Reka Bentuk Teknologi Nota Tingkatan satu1
 
TUGASAN MODUL 4 TS25 RUJUKAN SEKOLAH TERKINI
TUGASAN MODUL 4 TS25 RUJUKAN SEKOLAH TERKINITUGASAN MODUL 4 TS25 RUJUKAN SEKOLAH TERKINI
TUGASAN MODUL 4 TS25 RUJUKAN SEKOLAH TERKINI
 
Topik 5 - PEMBINAAN PERADABAN MAJMUK DI MALAYSIA.pdf
Topik 5 - PEMBINAAN PERADABAN MAJMUK DI MALAYSIA.pdfTopik 5 - PEMBINAAN PERADABAN MAJMUK DI MALAYSIA.pdf
Topik 5 - PEMBINAAN PERADABAN MAJMUK DI MALAYSIA.pdf
 

Empfohlen

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
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