$devtoolkit.sh/examples/xml/android-manifest

Android AndroidManifest.xml Example

The AndroidManifest.xml is the central configuration file for every Android application, declaring components, permissions, and deep link intent filters. This example shows a standard manifest with internet permission, a main activity with a launcher intent filter, and a deep link filter for handling custom URL schemes. The XML formatter validates element nesting and attribute names, which Android Studio's lint checker enforces strictly. Declare only the permissions your app actually needs — unnecessary permissions trigger store review flags and user warnings.

Example
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.myapp">

  <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

  <application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme">

    <activity android:name=".MainActivity" android:exported="true">
      <intent-filter>
        <action android:name="android.intent.action.MAIN"/>
        <category android:name="android.intent.category.LAUNCHER"/>
      </intent-filter>
      <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>
        <data android:scheme="myapp" android:host="open"/>
      </intent-filter>
    </activity>

  </application>
</manifest>
[ open in XML Formatter → ]

FAQ

Why do I need android:exported="true" on activities?
Android 12 and higher require you to explicitly declare android:exported for any activity, service, or receiver that uses intent filters. Activities with a LAUNCHER intent filter must set exported="true".
What are deep links in Android?
Deep links allow a URL to open a specific screen in your app. Intent filters with ACTION_VIEW and a data element defining the scheme and host register your activity to handle those URLs from browsers and other apps.
How many permissions should I request?
Request only the minimum permissions required for your app's core functionality. Each permission adds friction in the install flow and may trigger additional Google Play policy review, especially for sensitive permissions.

Related Examples

/examples/xml/android-manifestv1.0.0