AndroidManifest.xml 5.94 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="ch.amiv.android_app">

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

    <!-- To auto-complete the email text field in the login form with the user's emails -->
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="android.permission.READ_PROFILE" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />
13
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
14
15

    <application
Roger Barton's avatar
Roger Barton committed
16
        android:name=".core.MyApplication"
17
18
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
19
        android:label="@string/app_name"
20
21
22
        android:roundIcon="@mipmap/ic_launcher_round"
        android:screenOrientation="portrait"
        android:theme="@style/AppThemeLight">
23

24
        <activity
25
26
            android:name=".core.SplashActivity"
            android:theme="@style/SplashTheme"
27
            android:label="@string/app_name"
28
            android:noHistory="true">
29
30
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
31

32
33
34
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
35
36
37
38
39
40
41
42

        <activity
            android:name=".core.MainActivity"
            android:configChanges="keyboardHidden|orientation|layoutDirection|screenSize|locale"
            android:theme="@style/AppThemeLight"
            android:windowSoftInputMode="adjustNothing">
        </activity>

43
        <activity
44
            android:name=".core.LoginActivity"
45
            android:configChanges="keyboardHidden|orientation|layoutDirection|screenSize|locale"
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
            android:label="">
            <!--android:windowSoftInputMode="stateVisible"  use this to make the keyboard show when the activity is started-->
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="ch.amiv.android_app.core.MainActivity" />
        </activity>

        <activity
            android:name=".core.IntroActivity"
            android:screenOrientation="portrait"
            android:configChanges="locale" />

        <activity
            android:name=".core.SettingsActivity"
            android:configChanges="layoutDirection|locale"
61
            android:label=""
62
            android:parentActivityName=".core.MainActivity">
63
64
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
65
                android:value="ch.amiv.android_app.core.MainActivity" />
66
        </activity>
67

68
        <activity
69
70
71
72
73
74
75
            android:name=".events.EventDetailActivity"
            android:configChanges="orientation|layoutDirection|locale"
            android:theme="@style/AppThemeLight">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="ch.amiv.android_app.core.MainActivity" />
        </activity>
76

77
78
        <activity
            android:name=".jobs.JobDetailActivity"
79
            android:configChanges="orientation|layoutDirection|locale"
80
81
82
            android:theme="@style/AppThemeLight">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
83
                android:value="ch.amiv.android_app.core.MainActivity" />
84
        </activity>
85

Roger Barton's avatar
Roger Barton committed
86
87
        <activity
            android:name=".checkin.BarcodeIdActivity"
88
            android:configChanges="layoutDirection|locale"
Roger Barton's avatar
Roger Barton committed
89
            android:parentActivityName=".core.MainActivity"
90
            android:screenOrientation="portrait" />
91
92
93
94

        <!-- Checkin -->
        <activity
            android:name=".checkin.MainActivity"
Roger Barton's avatar
Roger Barton committed
95
            android:label="@string/app_name_checkin"
96
            android:screenOrientation="portrait"
97
98
            android:theme="@style/CheckinTheme" />

Roger Barton's avatar
Roger Barton committed
99
100
        <activity
            android:name=".checkin.ScanActivity"
101
            android:label="@string/app_name_checkin"
102
            android:screenOrientation="portrait"
Roger Barton's avatar
Roger Barton committed
103
            android:theme="@style/CheckinTheme">
104
105
106
107
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".checkin.MainActivity" />
        </activity>
108

Roger Barton's avatar
Roger Barton committed
109
110
        <activity
            android:name=".checkin.SettingsActivity"
111
            android:label="@string/app_name_checkin"
Roger Barton's avatar
Roger Barton committed
112
            android:screenOrientation="portrait"
113
114
115
116
117
            android:theme="@style/CheckinTheme">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".checkin.MainActivity" />
        </activity>
118

Roger Barton's avatar
Roger Barton committed
119
120
121
122
        <activity
            android:name=".checkin.MemberListActivity"
            android:label="@string/app_name_checkin"
            android:theme="@style/CheckinTheme">
123
124
125
            <intent-filter>
                <action android:name="android.intent.action.SEARCH" />
            </intent-filter>
Roger Barton's avatar
Roger Barton committed
126
127
128
129

            <meta-data
                android:name="android.app.searchable"
                android:resource="@xml/checkin_searchable" />
130
131
132
133
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".checkin.ScanActivity" />
        </activity>
134

Roger Barton's avatar
Roger Barton committed
135
136
137
138
        <activity
            android:name=".checkin.SearchMembersActivity"
            android:label="@string/app_name_checkin"
            android:theme="@style/CheckinTheme">
139
140
141
142
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".checkin.MemberListActivity" />
        </activity>
143

Roger Barton's avatar
Roger Barton committed
144
        <!-- Demo -->
145
146
        <activity
            android:name=".demo.MainActivity"
Roger Barton's avatar
Roger Barton committed
147
148
            android:configChanges="layoutDirection|locale"
            android:parentActivityName=".core.MainActivity"
149
            android:screenOrientation="portrait" />
150

151
    </application>
152
</manifest>