Manifest Tag
En dıştadır. Şeklen
şöyledir.
<manifest>
<application>
...
</application>
</manifest>
Application Tag
Application tag içinde Activity Tag'leri bulunur. Şeklen
şöyledir.
<?xml version="1.0" encoding="utf-8"?>
<manifest ...>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
<activity ...>
...
</activity>
</application>
</manifest>
icon
Şöyle
yaparız.
<application
android:name="Yourpackage.MyApplication"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:logo="@drawable/your_logo"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:replace="android:icon">
<!-- Your activities -->
</application>
label - Uygulama Adı
Şöyle
atanır.
<application>
android:label="App name here"
...
</application>
name - Sınıf Adı
Şöyle bir sınıfımız
olsun
public class MyApplication extends Aplication {
public static MusicService serviceMusic;
}
Şöyle
tanımlarız.
<application ...
android:name="YourPackage.MyApplication">
Kod içinde public static alanlara erişirmek için şöyle
yaparız.
MyApplication.serviceMusic;
supportsRtl - Right to Left
Açıklaması
şöyle. Sağdan sonra yazıyı destekleyip desteklemediğiniz gösterir.
Declares whether your application is willing to support right-to-left (RTL) layouts.
If set to true and targetSdkVersion is set to 17 or higher, various RTL APIs will be activated and used by the system so your app can display RTL layouts. If set to false or if targetSdkVersion is set to 16 or lower, the RTL APIs will be ignored or will have no effect and your app will behave the same regardless of the layout direction associated to the user's Locale choice (your layouts will always be left-to-right).
The default value of this attribute is false.
This attribute was added in API level 17.
Şöyle
yaparız
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
...
</application>
Activity Tag
launchMode
4 farklı değer
alabilir
Permission Tag
Şöyle
yaparız.
<?xml version="1.0" encoding="utf-8"?>
<manifest ...>
<uses-permission android:name = "android.permission.INTERNET"/>
<application ...>
<activity ...>
<intent-filter>
<action .../>
<category .../>
</intent-filter>
</activity>
</application>
</manifest>
Provider Tag
Application Tag içindedir. Şeklen
şöyledir
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.rlaville.gestionsav" >
<application ...>
...
<provider
android:name="..."
android:authorities="..."
android:exported="true"> </provider>
</application>
</manifest>