Adding User Permissions and a Class to the Android Manifest File

Add user permissions to the Android project. Also add a Detail Activity class to the AndroidManifest.xml file. This declaration launches a customer detail screen where you can make changes when you test the application.

  1. If needed, open the Android manifest file.
  2. Select the AndroidManifest.xml tab.
  3. Replace the code with the source code from the AndroidManifest.xml file you downloaded from the SAP Community Network (SCN) Web site, also provided below:
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    	package="com.mycorp.smp101.android.app"
    	android:versionCode="1"
    	android:versionName="1.0" >
    
        <uses-sdk
        	android:minSdkVersion="8"
        	android:targetSdkVersion="16" />
        <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    
        <application
        	android:allowBackup="true"
        	android:icon="@drawable/ic_launcher"
        	android:label="@string/app_name"
        	android:theme="@style/AppTheme" >
        	<activity
        		android:name=".SMP101SampleActivity" >
        		<intent-filter>
        			<action android:name="android.intent.action.MAIN" />
        			<category android:name="android.intent.category.LAUNCHER" />
        		</intent-filter>
        	</activity>
        	<activity android:name=".DetailActivity"
        		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>
    </manifest> 
    
    
  4. Select File > Save.