AndroidManifest.xml 8.01 KB
Newer Older
Mark Harman's avatar
Mark Harman committed
1
<?xml version="1.0" encoding="utf-8"?>
2
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Mark Harman's avatar
Mark Harman committed
3
    xmlns:tools="http://schemas.android.com/tools"
4
    package="net.sourceforge.opencamera"
Mark Harman's avatar
Mark Harman committed
5 6
    android:versionCode="79"
    android:versionName="1.48.3"
7
    android:installLocation="auto"
Mark Harman's avatar
Mark Harman committed
8 9
    tools:ignore="GoogleAppIndexingWarning">
    <!-- ignore GoogleAppIndexingWarning as we don't want to implement that -->
10

Mark Harman's avatar
Mark Harman committed
11 12
    <supports-screens android:xlargeScreens="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:anyDensity="true"/>

13 14
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
15 16
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
        android:maxSdkVersion="28"/>
Mark Harman's avatar
Mark Harman committed
17
    <uses-permission android:name="android.permission.CAMERA" />
18
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
Mark Harman's avatar
Mark Harman committed
19
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
Mark Harman's avatar
Mark Harman committed
20 21

    <uses-feature android:name="android.hardware.camera" />
Mark Harman's avatar
Mark Harman committed
22
    <uses-feature android:name="android.hardware.microphone" />
23 24
    <uses-feature android:name="android.hardware.bluetooth_le" android:required="false"/>
    
25 26
    <application
        android:allowBackup="true"
27
        android:icon="@mipmap/ic_launcher"
28
        android:label="@string/app_name"
29
        android:name=".OpenCameraApplication"
30 31
        android:theme="@style/AppTheme"
        android:largeHeap="true"
32
        >
33
        <!-- should not change the android:name, including moving to a subpackage - see http://android-developers.blogspot.co.uk/2011/06/things-that-cannot-change.html -->
34 35
        <activity
            android:name="net.sourceforge.opencamera.MainActivity"
Mark Harman's avatar
Mark Harman committed
36
            android:label="@string/app_name"
37
            android:screenOrientation="landscape"
38 39
            android:configChanges="orientation|screenSize|keyboardHidden"
            android:clearTaskOnLaunch="true"
40
            >
41 42 43
            <!-- clearTaskOnLaunch set to true, so if user goes to gallery then returns to home, we return to the camera rather than remaining in gallery if user relaunches Open Camera -->
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
44
                <category android:name="android.intent.category.LAUNCHER" />
45
                <category android:name="android.intent.category.DEFAULT" />
46
            </intent-filter>
47 48 49 50
            <intent-filter>
                <action android:name="android.media.action.IMAGE_CAPTURE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
51 52 53 54
            <intent-filter>
                <action android:name="android.media.action.IMAGE_CAPTURE_SECURE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
55 56 57 58
            <intent-filter>
                <action android:name="android.media.action.STILL_IMAGE_CAMERA" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
59 60 61 62
            <intent-filter>
                <action android:name="android.media.action.STILL_IMAGE_CAMERA_SECURE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
63 64 65 66
            <intent-filter>
                <action android:name="android.media.action.VIDEO_CAMERA" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
67 68 69 70 71
            <intent-filter>
                <action android:name="android.media.action.VIDEO_CAPTURE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts" />
72
        </activity>
73
        <activity
74
            android:name="net.sourceforge.opencamera.remotecontrol.DeviceScanner"
75
            android:label="@string/scan_ble"
76
            android:exported="false"
77 78 79
        >
        </activity>

80
        <!-- should not change the android:name, including moving to a subpackage - see http://android-developers.blogspot.co.uk/2011/06/things-that-cannot-change.html -->
81
        <activity
82
            android:name="TakePhoto"
83
            android:label="@string/take_photo"
84
            android:icon="@drawable/ic_launcher_take_photo"
85
            android:screenOrientation="landscape"
86 87 88
            android:configChanges="orientation|screenSize|keyboardHidden"
            android:taskAffinity=""
            android:excludeFromRecents="true"
89
            android:exported="false"
90 91
            >
        </activity>
92
        <!-- should not change the android:name, including moving to a subpackage - see http://android-developers.blogspot.co.uk/2011/06/things-that-cannot-change.html -->
93
        <receiver
94 95 96 97 98 99
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:name="MyWidgetProvider" >
            <intent-filter >
                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
            </intent-filter>
100
            <!-- <intent-filter> 
101
                <action android:name="net.sourceforge.opencamera.LAUNCH_OPEN_CAMERA"/> 
102
            </intent-filter>  -->
103 104 105 106 107
            <meta-data
               android:name="android.appwidget.provider"
               android:resource="@xml/widget_info" />
        </receiver> 
        <!-- should not change the android:name, including moving to a subpackage - see http://android-developers.blogspot.co.uk/2011/06/things-that-cannot-change.html -->
108
        <receiver
109
            android:icon="@drawable/ic_launcher_take_photo"
110
            android:label="@string/take_photo"
111 112 113 114 115 116 117 118
            android:name="MyWidgetProviderTakePhoto" >
            <intent-filter >
                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
            </intent-filter>
            <meta-data
               android:name="android.appwidget.provider"
               android:resource="@xml/widget_info_take_photo" />
        </receiver>
119 120 121
        <!-- should not change the android:name, including moving to a subpackage - see http://android-developers.blogspot.co.uk/2011/06/things-that-cannot-change.html -->
        <service
            android:name="net.sourceforge.opencamera.MyTileService"
122
            android:icon="@drawable/ic_photo_camera_white_48dp"
123 124 125 126 127 128
            android:label="@string/camera"
            android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
            <intent-filter>
                <action android:name="android.service.quicksettings.action.QS_TILE" />
            </intent-filter>
        </service>
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
        <!-- should not change the android:name, including moving to a subpackage - see http://android-developers.blogspot.co.uk/2011/06/things-that-cannot-change.html -->
        <service
            android:name="net.sourceforge.opencamera.MyTileServiceVideo"
            android:icon="@drawable/ic_videocam_white_48dp"
            android:label="@string/record_video"
            android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
            <intent-filter>
                <action android:name="android.service.quicksettings.action.QS_TILE" />
            </intent-filter>
        </service>
        <!-- should not change the android:name, including moving to a subpackage - see http://android-developers.blogspot.co.uk/2011/06/things-that-cannot-change.html -->
        <service
            android:name="net.sourceforge.opencamera.MyTileServiceFrontCamera"
            android:icon="@drawable/ic_face_white_48dp"
            android:label="@string/selfie"
            android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
            <intent-filter>
                <action android:name="android.service.quicksettings.action.QS_TILE" />
            </intent-filter>
        </service>
149 150 151 152
        <service android:name="net.sourceforge.opencamera.remotecontrol.BluetoothLeService"
            android:enabled="true"
            android:exported="false"
            />
153 154
    </application>
</manifest>