Your SlideShare is downloading. ×
Getting started Adroid Eclipse
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Getting started Adroid Eclipse

223

Published on

Getting started Adroid Eclipse

Getting started Adroid Eclipse

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
223
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 2012 Getting Started With Android Development Using Eclipse Junos Version Mohammad Syafiq Bin Mhd Hussain MediaCampus 10/16/2012
  • 2. ContentsWhat is Android? .......................................................................................................................................... 3 Introduction .............................................................................................................................................. 3Fahami Struktur Adroid................................................................................................................................. 3 Structure ................................................................................................................................................... 4 The /res folder ...................................................................................................................................... 4 Drawable ............................................................................................................................................... 4 Layouts .................................................................................................................................................. 4 The /src folder ....................................................................................................................................... 4Installation Eclipse and Android ................................................................................................................... 5Installing Android Development Tools (ADT) Kepada Eclipse....................................................................... 7Setting AVD Manager.................................................................................................................................. 10 Rupa Bentuk Emulator didalam Eclipse .............................................................................................. 10 Cara setting AVD Manager ...................................................................................................................... 11 2. Akan keluar seperti dibawah ini.......................................................................................................... 11Mohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 2
  • 3. What is Android?IntroductionAndroid adalah satu “Operation System” (OS) yang dibangunkan oleh Android Incmenggunakan “Linux” kernel untuk sistem operasi telefon, Android Inc dibeli oleh syarikatgergasi Google Inc pada tahun 2005 dan ia mula memasuki pasaran pada akhir 2009. Pada May2010, Android telah menguasai 20% pasaran smartphone di Amerika menandingi Smartphoneyang lain seperti windows os, iphone os dan blackberry os. Oleh kerana ia dibangunkan darisistem linux, Google membekalkan Android Operating sistem secara percuma dan ia akan kekalpercuma.Fahami Struktur AdroidSetiap aplikasi mesti mempunyai fail AndroidManifest.xml (dengan nama yang tepat) dalamdirektori akar. Mempunyai maklumat penting tentang aplikasi untuk sistem Android, sistemmaklumat mesti mempunyai sebelum ia boleh menjalankan apa-apa kod aplikasi.Mohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 3
  • 4. StructureThe /res folderThe res folder is where most application resources are stored. The main content categories include drawables,layouts, and values.DrawableAre 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-patchimages can be created with the nine-patch tools in the SDK, or with an image creation tool like Photoshop.LayoutsIs where you define your screens? To view the XML for the layout on screen, click the main.xml tab. Valuesare where you define (in XML) your globally used colors, dimensions, strings and styles. The strings.xml fileallows you to add and edit values for your project.The /src folderThe src folder contains all of your custom source code, grouped into packages. Packages are simply there tohelp categorize your source code into logical (and manageable) groups.Mohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 4
  • 5. Installation Eclipse and Android1. Download Eclipse di http://www.eclipse.org/downloads/2. Pastikan downloads latest Eclipse iaitu versi Juno3. Selepas anda download pastikan anda extract di tempat yang sesuai agar tak menganggu kerja anda dan memudahkan Eclipse-java-juno-SR1-win32.zipMohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 5
  • 6. 4. Selepas itu baru run eclipse.exe5. Setting Workspace #Pastikan save wordspace anda ditempat selemat agar tak kena delete.Kuarlah bentuk Cantik CamnieMohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 6
  • 7. Installing Android Development Tools (ADT) Kepada Eclipse1. 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 thefollowing 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, youll 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 ManagerAvd manager adalah tempat dimana kita tetapkan emulator Untuk adroid ,ini kerana kita hendakmemastikan 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 EclipseMohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 10
  • 11. Cara setting AVD Manager1. 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 emulatorbaru Untuk android.Mohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 11
  • 12. 3. Klik pada new sepeti dibawah4. 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.comMohammad Syafiq Bin Mhd Hussain-Getting Started Adroid Page 13

×