ANDROID TRAINING LESSON 1

8:32 AM Fighttech 1 Comments

I. Agenda
  1. References
  2. Tools
  3. Android SDK
  4. Creating a Project
  5. Project Components
  • XML
  • R Class
  • Layouts
  • Strings
  • Manifest File
II. References
  • This lesson is a brief overview of some major concepts
  • Developer’s Guide
http://developer.android.com/guide/index.html
  • API Reference
http://developer.android.com/reference/packages.html

III. Tools
  • Phone
  • Eclipse ( http://www.eclipse.org/downloads/ )
 - Android Plugin (ADT)
  • Android SDK ( http://developer.android.com/sdk/index.html )
- Install everything except Additional SDK Platforms, unless you want to
IV. Android SDK

  • Once installed open the SDK Manager
  • Install the desired packages
  • Create an Android Virtual Device (AVD)
 V. SDK Manager 
SDK Manager

VI. AVD
VII. Creating a Project
VIII. Project Components
  • src – your source code
  • gen – auto-generated code (usually just R.java)
  • Included libraries
  • Resources
 - Drawables (like .png images)
 - Layouts
 - Values (like strings)
  • Manifest file
IX. XML
  • Used to define some of the resources
 - Layouts (UI)
 - Strings
  • Manifest file
  • Shouldn’t usually have to edit it directly, Eclipse can do that for you Preferred way of creating UIs
- Separates the description of the layout from any actual code that controls it
 - Can easily take a UI from one platform to another
X. R Class
  • Auto-generated: you shouldn’t edit it
  • Contains IDs of the project resources
  • Use findViewById and Resources object to get access to the resources
 - Ex. Button b = (Button)findViewById(R.id.button1)
 - Ex. getResources().getString(R.string.hello));

1 comment:

  1. Fill before analysis reach. He nearly themselves wish institution. Although energy above hear phone never.religious

    ReplyDelete