CS4521:   Mobile and Topics in Web Programming

Android Manifest File ----- Lets Decompose one

The default Android Manifest files is called AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="grewe.lab1"             this indicates the package used
     android:versionCode="1"          this indicates the version of this app (used in upgrading)
     android:versionName="1.0" >      this is for display to user

<uses-sdk android:minSdkVersion="14" /> minimum version of Os on which application will run

<application android:icon="@drawable/ic_launcher" this is the icon ic_launcer.png located in drawable folders android:label="@string/app_name" > application name stored in res/values/strings.xml      <activity there is one application called Lab1_4521Activity.java      android:label="@string/app_name" label of activity here is set to application name      android:name=".Lab1_4521Activity" >           <intent-filter > this tells us how to "start the activity"               <action android:name="android.intent.action.MAIN" /> this says this activity is entry point for app
              <category android:name="android.intent.category.LAUNCHER" /> says we can lauch from device's launcher icon           </intent-filter>      </activity> </application>

</manifest>
© Lynne Grewe