getting started with android

31
Free Saturday Lesson Free Saturday Lesson

Upload: fsl-comlabs-usdi-itb

Post on 28-Jan-2015

119 views

Category:

Technology


0 download

DESCRIPTION

FSL Android: Introduction and Workshop oleh Ibnu Sina Wardy (CTO GITS Indonesia)

TRANSCRIPT

Page 1: Getting Started With Android

Free Saturday LessonFree Saturday Lesson

Page 2: Getting Started With Android

what is androidwhat is androidAndroid 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.best mobile platform best mobile platform applicationapplicationpowered by Googlepowered by Googlehttp://developer.android.com/http://developer.android.com/

Page 3: Getting Started With Android

featuresfeatures

1. Application framework enabling reuse and replacement of components

2. Dalvik virtual machine optimized for mobile devices

3. Integrated browser based on the open source WebKit engine

4. Optimized graphics powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional)

5. SQLite for structured data storage6. Media support for common audio, video, and still

image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)

7. GSM Telephony (hardware dependent)8. Bluetooth, EDGE, 3G, and WiFi (hardware

dependent)9. Camera, GPS, compass, and accelerometer

(hardware dependent)10.Rich development environment including a

device emulator, tools for debugging, memory and performance profiling, and a plugin for the Eclipse IDE

Page 4: Getting Started With Android

getting started with android getting started with android (1)(1)

1. Eclipse installed as GUI editor android platform, go to http://www.eclipse.org/downloads/, Eclipse Classic, GanyMede Packages, Eclipse Classic 3.4.2

2. Android SDK installed as emulator, basic platform and environment android style, go to http://developer.android.com/sdk/index.html

3. 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

4. Open Eclipse, Window – Preferences. Configure Android path installation from folder android SDK downloaded earlier.

https://dl-ssl.google.com/android/repository/repository.xml

Page 5: Getting Started With Android

getting started with android getting started with android (2)(2)Picture Item 3 guidance

Page 6: Getting Started With Android

getting started with android getting started with android (3)(3)Picture Item 3 guidance

Page 7: Getting Started With Android

getting started with android getting started with android (4)(4)Picture Item 4 guidance

Page 8: Getting Started With Android

getting started with android getting started with android (5)(5)Picture Item 4 guidance

Page 9: Getting Started With Android

getting started with android getting started with android (6)(6)Install virtual devices

Page 10: Getting Started With Android

Create basic application (1)Create basic application (1)

Page 11: Getting Started With Android

Create basic application (2)Create basic application (2)

1. Project Name: HelloWorld2. Build Target: Android 2.13. Application Name: HelloWorld4. Package Name: im2.org.sample.main5. Create Activity: HelloActivity6. Min SDK Version: 7

Page 12: Getting Started With Android

Create basic application (3)Create basic application (3)run application by emulator

Page 13: Getting Started With Android

Create basic application (4)Create basic application (4)on emulator

Page 14: Getting Started With Android

Structure Android Project (1)Structure Android Project (1)Project Name: HelloWorld

Src => Source ScriptGen => Autogenerate Id Variable LocalAsset => Storage File (movie, sound etc)

Res->drawable => Storage picture layoutRes->layout => XML layoutRes->string => definition variable globalAndroidManifest.xml

Page 15: Getting Started With Android

Structure Android Project (2)Structure Android Project (2)AndroidManifest.xml

Page 16: Getting Started With Android

Structure Android Project (3)Structure Android Project (3)AndroidManifest.xml

Page 17: Getting Started With Android

Structure Android Project (4)Structure Android Project (4)AndroidManifest.xml – Permissionhttp://developer.android.com/

reference/android/Manifest.permission.html

Page 18: Getting Started With Android

Structure Android Project (5)Structure Android Project (5)Layout -> main.xml

Page 19: Getting Started With Android

Structure Android Project (6)Structure Android Project (6)Res->Drawable, gen-> R.java

Page 20: Getting Started With Android

Structure Android Project (7)Structure Android Project (7)Src-> HelloActivity

Page 21: Getting Started With Android

Structure Android Project (8)Structure Android Project (8)Src-> HelloActivity

Page 22: Getting Started With Android

Next Sample HelloWorldNext Sample HelloWorldLoginActivity

Page 23: Getting Started With Android

Next Sample HelloWorldNext Sample HelloWorldlogin.xml

Page 24: Getting Started With Android

Next Sample HelloWorldNext Sample HelloWorldlogin.xml

Page 25: Getting Started With Android

Next Sample HelloWorldNext Sample HelloWorldlogin.xml

Page 26: Getting Started With Android

Next Sample HelloWorldNext Sample HelloWorldAndroidManifest.xml

Page 27: Getting Started With Android

Next Sample HelloWorldNext Sample HelloWorldRunning by emulator

Page 28: Getting Started With Android

Next Sample HelloWorldNext Sample HelloWorldRunning by emulator

Page 29: Getting Started With Android

Guidance beginner developerGuidance beginner developer

http://developer.android.com/resources/tutorials/hello-

world.html

Page 30: Getting Started With Android

WebViewWebViewHTML 5MultiplatformSencha Touch, etc

Page 31: Getting Started With Android

SummarSummaryy

1. Android Platform Description2. Installation GUI & Editor3. Create First Android App4. Structure Android Project5. Improvement First Android

App6. Developer Guidance