During i was trying to search about the IceCream Sandwich, i got the below image which i think useful to the novice Android programmer for knowing about the Android version names.
MAriano Salvetti !
Activity
- represents the presentation layer of an Android application, e.g. a screen which the user sees. An Android application can have several activities and it can be switched between them during runtime of the application.Views
- the User interface of an Activities is built with widget classes which inherent fromandroid.view.View
. The layout of the views is managed by android.view.ViewGroups
. Views often have attributes which can be used to change their appearance and behavior.Services
- perform background tasks without providing an UI. They can notify the user via the notification framework in Android.ContentProvider
- provides data to applications, via a content provider your application can share data with other applications. Android contains a SQLite DB which can serve as data providerIntents
- are asynchronous messages which allow the application to request functionality from other services or activities. An application can call directly a service or activity (explicit intent) or ask the Android system for registered services and applications for an intent (implicit intents). For example the application could ask via an intent for a contact application. Applications register themselves to an intent via an IntentFilter. Intents are a powerful concept as they allow the creation of loosely coupled applications.BroadcastReceiver
- receives system messages and implicit intents, can be used to react to changed conditions in the system. An application can register as a BroadcastReceiver
for certain events and can be started if such an event occurs.Widgets
- interactive components primary used on the Android homescreen to display certain data and to allow the user to have quick access the the informationdx
which allows to convert Java Class files into dex
(Dalvik Executable) files. Android applications are packed into an .apk
(Android Package) file by the program aapt
(Android Asset Packaging Tool) To simplify development Google provides the Android Development Tools (ADT) for Eclipse. The ADT performs automatically the conversion from class to dex files and creates the apk during deployment.AndroidManifest.xml
. This file must declare all activities, services, broadcast receivers and content provider of the application. It must also contain the required permissions for the application. For example if the application requires network access it must be specified here. AndroidManifest.xml
can be thought as the deployment descriptor for an Android application.<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="de.vogella.android.temperature" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".Convert" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> <uses-sdk android:minSdkVersion="9" /> </manifest>
package
attribute defines the base package for the following Java elements. It also must be unique as the Android Marketplace only allows application for a specfic package once. Therefore a good habit is to use your reverse domain name as a package to avoid collisions with other developers.android:versionName
and android:versionCode
specify the version of your application. versionName
is what the user sees and can be any string. versionCode
must be an integer and the Android Market uses this to determine if you provided a newer version to trigger the update on devices which have your application installed. You typically start with "1" and increase this value by one if you roll-out a new version of your application.<activity android:name=".ProgressTestActivity" android:label="@string/app_name" android:configChanges="orientation|keyboardHidden|keyboard"> </activity>
Want to program in Android? On Saturday November 5 at NJambre (France Av 889) we'll be kicking off so you can create the application you want plus a few other useful tricks to teach more advanced. Only you have to register yourself, you come with your computer and you get your first program going! To view the contents and more information you can visit our website http://rosario.gtugs.org/eventos_futuros/android-bootcamp-2011 We are waiting! G o o g l e Technology Users Group Rosario |