AndroidManifest.xml 7.16 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
    android:versionCode="67"
Mark Harman's avatar
Mark Harman committed
5
    android:versionName="1.45"
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
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Mark Harman's avatar
Mark Harman committed
12
    <uses-permission android:name="android.permission.CAMERA" />
13
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
Mark Harman's avatar
Mark Harman committed
14
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
Mark Harman's avatar
Mark Harman committed
15 16

    <uses-feature android:name="android.hardware.camera" />
Mark Harman's avatar
Mark Harman committed
17
    <uses-feature android:name="android.hardware.microphone" />
18

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