AndroidManifest.xml 7.9 KB
Newer Older
Mark Harman's avatar
Mark Harman committed
1
<?xml version="1.0" encoding="utf-8"?>
2 3
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="net.sourceforge.opencamera"
Mark Harman's avatar
Mark Harman committed
4 5
    android:versionCode="70"
    android:versionName="1.46"
6
    android:installLocation="auto"
7 8
    >

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

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

    <uses-feature android:name="android.hardware.camera" />
Mark Harman's avatar
Mark Harman committed
19
    <uses-feature android:name="android.hardware.microphone" />
20 21
    <uses-feature android:name="android.hardware.bluetooth_le" android:required="false"/>
    
22 23
    <application
        android:allowBackup="true"
24
        android:icon="@mipmap/ic_launcher"
25
        android:label="@string/app_name"
26
        android:name=".OpenCameraApplication"
27 28
        android:theme="@style/AppTheme"
        android:largeHeap="true"
29
        >
30
        <!-- 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 -->
31 32
        <activity
            android:name="net.sourceforge.opencamera.MainActivity"
Mark Harman's avatar
Mark Harman committed
33
            android:label="@string/app_name"
34
            android:screenOrientation="landscape"
35 36
            android:configChanges="orientation|screenSize|keyboardHidden"
            android:clearTaskOnLaunch="true"
37
            >
38 39 40
            <!-- 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" />
41
                <category android:name="android.intent.category.LAUNCHER" />
42
                <category android:name="android.intent.category.DEFAULT" />
43
            </intent-filter>
44 45 46 47
            <intent-filter>
                <action android:name="android.media.action.IMAGE_CAPTURE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
48 49 50 51
            <intent-filter>
                <action android:name="android.media.action.IMAGE_CAPTURE_SECURE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
52 53 54 55
            <intent-filter>
                <action android:name="android.media.action.STILL_IMAGE_CAMERA" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
56 57 58 59
            <intent-filter>
                <action android:name="android.media.action.STILL_IMAGE_CAMERA_SECURE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
60 61 62 63
            <intent-filter>
                <action android:name="android.media.action.VIDEO_CAMERA" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
64 65 66 67 68
            <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" />
69
        </activity>
70 71 72 73 74 75 76 77 78 79
        <activity
            android:name="net.sourceforge.opencamera.Remotecontrol.DeviceScanner"
            android:label="@string/scan_ble"
        >
            <intent-filter>
                <action android:name="net.sourceforge.opencamera.Remotecontrol.DeviceScanner"/>
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </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 90
            >
        </activity>
91
        <!-- 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 -->
92
        <receiver
93 94 95 96 97 98
            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>
99
            <!-- <intent-filter> 
100
                <action android:name="net.sourceforge.opencamera.LAUNCH_OPEN_CAMERA"/> 
101
            </intent-filter>  -->
102 103 104 105 106
            <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 -->
107
        <receiver
108
            android:icon="@drawable/ic_launcher_take_photo"
109
            android:label="@string/take_photo"
110 111 112 113 114 115 116 117
            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>
118 119 120
        <!-- 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"
121
            android:icon="@drawable/ic_photo_camera_white_48dp"
122 123 124 125 126 127
            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>
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
        <!-- 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>
148
        <service android:name="net.sourceforge.opencamera.Remotecontrol.BluetoothLeService" android:enabled="true"/>
149 150
    </application>
</manifest>