Android

1714 palavras 7 páginas
Android Tutorial

Larry Walters OOSE Fall 2011

References
This tutorial is a brief overview of some major concepts…Android is much richer and more complex Developer’s Guide http://developer.android.com/guide/index.html API Reference http://developer.android.com/reference/packages.html 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

Windows Users: may need to install Motorola Driver directly ( http://www.motorola.com/Support/USEN/Support-Homepage/Software_and_Drivers/USB-and-PCCharging-Drivers )

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

SDK Manager

AVD

ADT Plugin (1)
In Eclipse, go to Help -> Install New Software Click ‘Add’ in top right Enter:
Name: ADT Plugin Location: https://dl-ssl.google.com/android/eclipse/

Click OK, then select ‘Developer Tools’, click Next Click Next and then Finish Afterwards, restart Eclipse Specify SDK location (next 3 slides)
Must do this every time start a new project in a new location (at least in Windows)

ADT Plugin (2)

ADT Plugin (3)

ADT Plugin (4)

Creating a Project (1)

Creating a Project (2)
Need the items circled Then click Finish

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

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

R Class
Auto-generated: you shouldn’t edit it Contains IDs of the project resources

Relacionados

  • android para android
    1404 palavras | 6 páginas
  • Android
    1149 palavras | 5 páginas
  • Android
    3637 palavras | 15 páginas
  • Android
    3790 palavras | 16 páginas
  • Android
    1027 palavras | 5 páginas
  • Android
    3607 palavras | 15 páginas
  • Android
    2573 palavras | 11 páginas
  • Android
    1540 palavras | 7 páginas
  • android
    863 palavras | 4 páginas
  • Android
    3226 palavras | 13 páginas