NHNNEXT 고등•™ƒ‌ °½‌²´— ”„ëœê·¸ë‍ë° ‹¤µ

  • View
    1.883

  • Download
    0

Embed Size (px)

DESCRIPTION

 

Text of NHNNEXT 고등•™ƒ‌...

Slide 1

Hello! Android Programming

..

, ,

, ,

.

Android ? #1. Hello World!! #2.

1. Android ?

Java .Google

Google ..

Google .

!! ..

..

Android ..

Linux

Google

..

2. ( OK!!)

Android

5. Java runtimeSE ver 6

4. Eclipse 3.5

3. Eclipse ADT plug-in

2. Android SDK

1. Android Platform(s)

1,2,3 developer.android.com4 eclipse.org5 java.com

4.

Activity

View

Event

Intent

(, ..)

( .. )

( , ..)

onClick()

Activity

View

Button

}

class MyActivityextends Activity{onCreate() Defines view{View view = setContentView(view);}Event{Intent intent = .sendBroadcast(intent);}

Uses intent to start

# 1. Hello! World!!

#1. (Eclipse)

!

#2.

File -> New -> Other Android Project

!

#3-1.

HelloYourEnglishName

!!

#3-2.

Package

com.helloyourname.nhnnext

!!

#3-3.

..

Build SDK Android 4.1(API 16) !!

#4.

NEXT

#5. Activity ()

BlackActivity ( ) NEXT

#6. Blank Activity ( )

Finish

#7. !

string.xml !

#8. ()

string.xml !!

#9.

hello_world !!

#10.

Build Project

#11.

-> Run As

-> Android Application

#12.

!

!!

# 2.

#1.

#2.

-> Run As

-> Run Configuration

#3.

Always prompt to pick device

!!

# 3.

onClick()

Activity

View

Button

}

class MyActivityextends Activity{onCreate() Defines view{View view = setContentView(view);}Event{Intent intent = .sendBroadcast(intent);}

Uses intent to start

#1-1.

.Board Activity Intent-filter ..

#1-2.

!!

#2-1. Board Activity

// ()

#2-2. Board Activity

// () !

#2-1. Board Activity

()

#3.

#4.

-> Run As

-> Android Application

!!

..

..

!!

!!