Your SlideShare is downloading. ×
0
Android App

                   2009.11.06
                   Nemustech


          rhoon@nemustech.com


                ...
Android SDK

http://developer.android.com/sdk/index.html
Version 1.0, 1.1, 1.5, 1.6, 2.0
Framework source :
$SRCROOT$/fram...
Application
source tree




              3
Android Application

              apk

 apk

           activity   resource

       : adb install $APK_PATH

       : adb...
AndroidManifest.xml

MyApplication.apk

apk          meta

               activity

  activity          .     Theme style
...
Activity.                  ??


 android.app.Activity

             Interaction

        &




                           ...
Activity Life Cycle


 http://developer.android.com/reference/android/app/
 Activity.html#ActivityLifecycle
 paused    sto...
Why Activity ??

 binary

 process & application

               resource

 http://developer.android.com/videos/
 index.ht...
Activity

 Activity                onCreate()

 onCreate()     setContentView()

 AndroidManifest.xml   <activity>

      ...
Window

android.view.Window

          Window Manager

Android          ,                     interface

View.getWindow()....
Views

         View

http://developer.android.com/guide/tutorials/views/
index.html
android.view.View
android.view.ViewGr...
View

            User interaction

android.widget.Button
android.widget.EditText
android.widget.ImageView




           ...
ViewGroup


     View                      View

               layout

http://developer.android.com/guide/topics/ui/layou...
FrameLayout

android.widget.FrameLayout

    view




                             14
LinearLayout

android.widget.LinearLayout

VERTICAL or HORIZONTAL

                          view




                    ...
RelativeLayout


android.widget.RelativeLayout
     view

  ) a view       b view         , c view   a view
              ...
LayoutParams

android.view.ViewGroup.LayoutParams
    view        viewgroup              ,   view


WRAP_CONTENT, FILL_PAR...
hierarchyviewer


 $SDK_PATH/tools/hierarchyviewer
 device     emulator           ,   view hierarchy


                 la...
Resource

layout :          (xml)

drawable :                 (png, bmp), stateful drawable
(xml)
anim :             (xml)...
Localization & Multi-screen

                        ‘values-ko’, ‘layout-ja’, ‘drawable-
 fr’


 ‘layout-land’, ‘layout-p...
Java VS Xml

                 Java,      xml, hybrid


xml           view   java
findViewById(int)

JavaVsXml



          ...
checklist

EditText


                   &


option menu    flush &
delete all


                        22
Animation
android.view.animation.Animation
view                                     ,
       ,                            ...
tools


$SDK_PATH/tools/*
hierarchyviewer
draw9patch :        !!




                         24
25
Upcoming SlideShare
Loading in...5
×

Android App 개발 기초

1,387

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,387
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
14
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Android App 개발 기초"

  1. 1. Android App 2009.11.06 Nemustech rhoon@nemustech.com 1
  2. 2. Android SDK http://developer.android.com/sdk/index.html Version 1.0, 1.1, 1.5, 1.6, 2.0 Framework source : $SRCROOT$/framework/base/core/java/android/ $SRCROOT$/framework/base/core/res/res/ 2
  3. 3. Application source tree 3
  4. 4. Android Application apk apk activity resource : adb install $APK_PATH : adb uninstall $FULL_PACKAGE_NAME 4
  5. 5. AndroidManifest.xml MyApplication.apk apk meta activity activity . Theme style 5
  6. 6. Activity. ?? android.app.Activity Interaction & 6
  7. 7. Activity Life Cycle http://developer.android.com/reference/android/app/ Activity.html#ActivityLifecycle paused stopped 7
  8. 8. Why Activity ?? binary process & application resource http://developer.android.com/videos/ index.html#v=fL6gSd4ugSI 8
  9. 9. Activity Activity onCreate() onCreate() setContentView() AndroidManifest.xml <activity> Context.startActivity() 9
  10. 10. Window android.view.Window Window Manager Android , interface View.getWindow().requestFeature(int) 10
  11. 11. Views View http://developer.android.com/guide/tutorials/views/ index.html android.view.View android.view.ViewGroup 11
  12. 12. View User interaction android.widget.Button android.widget.EditText android.widget.ImageView 12
  13. 13. ViewGroup View View layout http://developer.android.com/guide/topics/ui/layout- objects.html 13
  14. 14. FrameLayout android.widget.FrameLayout view 14
  15. 15. LinearLayout android.widget.LinearLayout VERTICAL or HORIZONTAL view 15
  16. 16. RelativeLayout android.widget.RelativeLayout view ) a view b view , c view a view . 16
  17. 17. LayoutParams android.view.ViewGroup.LayoutParams view viewgroup , view WRAP_CONTENT, FILL_PARENT, FILL_PARENT weight 17
  18. 18. hierarchyviewer $SDK_PATH/tools/hierarchyviewer device emulator , view hierarchy layout 18
  19. 19. Resource layout : (xml) drawable : (png, bmp), stateful drawable (xml) anim : (xml) values : strings.xml, dimen.xml, id.xml, colors.xml, styles.xml, theme.xml 19
  20. 20. Localization & Multi-screen ‘values-ko’, ‘layout-ja’, ‘drawable- fr’ ‘layout-land’, ‘layout-port’ : ‘layout-800x480’ : pixel size ‘layout-hdpi’, ‘layout-ldpi’ : pixel density 20
  21. 21. Java VS Xml Java, xml, hybrid xml view java findViewById(int) JavaVsXml 21
  22. 22. checklist EditText & option menu flush & delete all 22
  23. 23. Animation android.view.animation.Animation view , , . TranslateAnimation, ScaleAnimation, RotateAnimation, AlphaAnimation, AnimationSet aView.setAnimation() , aView invalidate() . aAnim.startAnimation(aView) , . 23
  24. 24. tools $SDK_PATH/tools/* hierarchyviewer draw9patch : !! 24
  25. 25. 25
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×