Full Android Manifest Example

Full Android Manifest Example

JavaScript
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.your.package" android:versionCode="1" android:versionName="1.0" >
    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="24" />
    
    <!-- Mandatory permissions -->
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    
    <!-- Recommended optional permissions -->
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>    
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <application
        android:theme="@style/AppTheme" >
             
            <activity
            android:name=".YourMainActivityName">
              <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
            </activity>         
             
            <!-- Mandatory for Google Play Services to work properly -->
            <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
    </application>
</manifest>
 
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request