02 - android sdk

16
8/12/2019 02 - Android SDK http://slidepdf.com/reader/full/02-android-sdk 1/16 © 2014 MFer@ESTSetubal Manuel Ferreira Eng. Eletrotécnica e de Computadores Sistemas Embebidos Android 2 – Android SDK

Upload: bugolipe

Post on 03-Jun-2018

238 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 02 - Android SDK

8/12/2019 02 - Android SDK

http://slidepdf.com/reader/full/02-android-sdk 1/16

© 2014 MFer@ESTSetubal

Manuel Ferreira

Eng. Eletrotécnica e de Computadores

Sistemas Embebidos

Android2 – Android SDK

Page 2: 02 - Android SDK

8/12/2019 02 - Android SDK

http://slidepdf.com/reader/full/02-android-sdk 2/16

© 2014 MFer@ESTSetubal 2

Android SDK

The Android SDK provides you the API libraries and

developer tools necessary to build, test, and debug appsfor Android.

1. Download SDK

http://developer.android.com/sdk/index.html#download

.Install the SDK and !clipse ID!

"npac# the $IP file %na&ed adt-bundle-<os_platform>.zip' and saveit to an appropriate location.

(pen the adt-bundle-<os_platform>/eclipse/  directory and launcheclipse.

Page 3: 02 - Android SDK

8/12/2019 02 - Android SDK

http://slidepdf.com/reader/full/02-android-sdk 3/16

© 2014 MFer@ESTSetubal 3

Android SDK

).Download the latest SDK tools and platfor&s using the

SDK *anager.

Page 4: 02 - Android SDK

8/12/2019 02 - Android SDK

http://slidepdf.com/reader/full/02-android-sdk 4/16

© 2014 MFer@ESTSetubal 4

Android SDK

+reating a Proect with !clipse

Page 5: 02 - Android SDK

8/12/2019 02 - Android SDK

http://slidepdf.com/reader/full/02-android-sdk 5/16

© 2014 MFer@ESTSetubal 5

Android SDK

+reating a Proect with !clipse

Application -a&e

It is the app na&e that appears to users.

Proect -a&e

It is the na&e of your proect directory and the na&e visible in !clipse.

Pac#age -a&e

It is the pac#age na&espace for your app %following the sa&e rules aspac#ages in the ava progra&&ing language'.

/our pac#age na&e &ust be uni0ue across all pac#ages installed on the

Android syste&.

Page 6: 02 - Android SDK

8/12/2019 02 - Android SDK

http://slidepdf.com/reader/full/02-android-sdk 6/16

© 2014 MFer@ESTSetubal 6

Android SDK

+reating a Proect with !clipse

*ini&u& e0uired SDK

It is the lowest version of Android that your app supports, indicated usingthe API level.

To support as &any devices as possible, you should set this to the lowestversion available that allows your app to provide its core feature set.

Target SDK

It indicates the highest version of Android %also using the API level' withwhich you have tested with your application.

+o&pile 2ith

It is the platfor& version against which you will co&pile your app. 3ydefault, this is set to the latest version of Android available in your SDK.

The&e

Specifies the Android "I style to apply for your app.

Page 7: 02 - Android SDK

8/12/2019 02 - Android SDK

http://slidepdf.com/reader/full/02-android-sdk 7/16

© 2014 MFer@ESTSetubal 7

Android SDK

+reating a Proect with !clipse

Page 8: 02 - Android SDK

8/12/2019 02 - Android SDK

http://slidepdf.com/reader/full/02-android-sdk 8/16© 2014 MFer@ESTSetubal 8

Android SDK

+reating a Proect with !clipse

/ou can custo&i4e an icon in several ways and the tool generatesan icon for all screen densities.

http://developer.android.com/design/style/iconography.html

Page 9: 02 - Android SDK

8/12/2019 02 - Android SDK

http://slidepdf.com/reader/full/02-android-sdk 9/16© 2014 MFer@ESTSetubal 9

Android SDK

+reating a Proect with !clipse

-ow you can select an activity te&plate fro& which to beginbuilding your app.

Page 10: 02 - Android SDK

8/12/2019 02 - Android SDK

http://slidepdf.com/reader/full/02-android-sdk 10/16© 2014 MFer@ESTSetubal 10

Android SDK

+reating a Proect with !clipse

Page 11: 02 - Android SDK

8/12/2019 02 - Android SDK

http://slidepdf.com/reader/full/02-android-sdk 11/16© 2014 MFer@ESTSetubal 11

Android SDK

unning the App

src/

App5s &ain source files.

res/

+ontains several sub6directories for app resources.

drawable-hdpi/

Directory for drawable obects %such as bit&aps' thatare designed for high6density %hdpi' screens.

layout/

Directory for files that define the app user interface.values/

Directory for 7*8 files that contain a collection ofresources, such as string and color definitions.

Page 12: 02 - Android SDK

8/12/2019 02 - Android SDK

http://slidepdf.com/reader/full/02-android-sdk 12/16© 2014 MFer@ESTSetubal 12

Android SDK

un on the !&ulator

+reate an Android 9irtual Device%A9D'

Page 13: 02 - Android SDK

8/12/2019 02 - Android SDK

http://slidepdf.com/reader/full/02-android-sdk 13/16© 2014 MFer@ESTSetubal 13

Android SDK

un on the !&ulator

un the App

Page 14: 02 - Android SDK

8/12/2019 02 - Android SDK

http://slidepdf.com/reader/full/02-android-sdk 14/16© 2014 MFer@ESTSetubal 14

Android SDK

unning on a real device

!nable "S3 debugging on your device.

(n devices running Android ). or older

Settings → Applications → Development.

(n Android :.; and newer

Settings → Developer options

(n Android :. and newer, Developer options is hidden by default.

To &a#e it available, go to Settings → About phone and tap Buildnumber seven ti&es.

eturn to the previous screen to find Developer options.

Page 15: 02 - Android SDK

8/12/2019 02 - Android SDK

http://slidepdf.com/reader/full/02-android-sdk 15/16

Page 16: 02 - Android SDK

8/12/2019 02 - Android SDK

http://slidepdf.com/reader/full/02-android-sdk 16/16