getting started with android

Post on 28-Jan-2015

119 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

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

TRANSCRIPT

Free Saturday LessonFree Saturday Lesson

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/

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

reference/android/Manifest.permission.html

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

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

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

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

Next Sample HelloWorldNext Sample HelloWorldLoginActivity

Next Sample HelloWorldNext Sample HelloWorldlogin.xml

Next Sample HelloWorldNext Sample HelloWorldlogin.xml

Next Sample HelloWorldNext Sample HelloWorldlogin.xml

Next Sample HelloWorldNext Sample HelloWorldAndroidManifest.xml

Next Sample HelloWorldNext Sample HelloWorldRunning by emulator

Next Sample HelloWorldNext Sample HelloWorldRunning by emulator

Guidance beginner developerGuidance beginner developer

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

world.html

WebViewWebViewHTML 5MultiplatformSencha Touch, etc

SummarSummaryy

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

App6. Developer Guidance

top related