Android Tutorial

(avery) #1

By : Ketan Bhimani


102 

Managing Your Application’s Identity

Your application’s Android manifest file defines the application
properties. The package name must be defined within the Android
manifest file within the <manifest> tag using the package
attribute:

<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.androidbook.multimedia"
android:versionCode="1"
android:versionName="1.0">


Versioning Your Application

Versioning your application appropriately is vital to maintaining
your application in the field. Intelligent versioning can help reduce
confusion and make product support and upgrades simpler. There
are two different version attributes defined within the <manifest>
tag: the version name and the version code.

The version name (android:versionName) is a user-friendly,
developer-defined version attribute. This information is displayed to
users when they manage applications on their devices and when
they download the application from marketplaces. Developers use
this version information to keep track of their application versions
in the field.We discuss appropriate application versioning for mobile
applications in detail in Chapter “The Mobile Software Development
Process.”

The Android operating system uses the version code
(android:versionCode) that is a numeric attribute to manage
application upgrades.We talk more about publishing and upgrade
support in Chapter “Selling Your Android Application.”
Free download pdf