|
1 | | -<?xml version="1.0" encoding="utf-8"?> |
2 | | -<!-- |
| 1 | +<?xml version="1.0" encoding="utf-8"?><!-- |
3 | 2 | ~ * Copyright (c) 2016, University of Oslo |
4 | 3 | ~ * All rights reserved. |
5 | 4 | ~ * |
|
29 | 28 | --> |
30 | 29 |
|
31 | 30 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
32 | | - package="org.hisp.dhis.android.trackercapture" > |
| 31 | + xmlns:tools="http://schemas.android.com/tools" |
| 32 | + package="org.hisp.dhis.android.trackercapture"> |
33 | 33 |
|
34 | | - <uses-sdk |
35 | | - android:targetSdkVersion="21" /> |
| 34 | + <uses-sdk android:targetSdkVersion="21" /> |
36 | 35 |
|
37 | 36 | <uses-permission android:name="android.permission.INTERNET" /> |
38 | 37 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
39 | 38 | <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> |
40 | 39 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
41 | | - <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> |
42 | | - <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> |
| 40 | + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
| 41 | + <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> |
43 | 42 |
|
44 | 43 | <application |
45 | 44 | android:name="org.hisp.dhis.android.trackercapture.TrackerCaptureApplication" |
46 | | - android:allowBackup="true" |
| 45 | + android:allowBackup="false" |
| 46 | + tools:replace="android:allowBackup" |
47 | 47 | android:icon="@drawable/ic_launcher" |
48 | 48 | android:label="@string/app_name" |
49 | | - android:theme="@style/AppTheme"> |
| 49 | + android:theme="@style/AppTheme.Base"> |
50 | 50 | <activity |
51 | 51 | android:name="org.hisp.dhis.android.sdk.ui.activities.SplashActivity" |
52 | | - android:theme="@style/LoginScreenTheme" |
53 | | - android:label="@string/app_name" > |
| 52 | + android:label="@string/app_name" |
| 53 | + android:theme="@style/LoginScreenTheme"> |
54 | 54 | <intent-filter> |
55 | 55 | <action android:name="android.intent.action.MAIN" /> |
56 | 56 | <category android:name="android.intent.category.LAUNCHER" /> |
57 | 57 | </intent-filter> |
58 | 58 | </activity> |
59 | 59 | <activity |
60 | 60 | android:name="org.hisp.dhis.android.sdk.ui.activities.LoginActivity" |
61 | | - android:theme="@style/LoginScreenTheme" |
62 | 61 | android:configChanges="orientation|keyboardHidden|screenSize" |
63 | | - android:label="@string/app_name" > |
64 | | - </activity> |
| 62 | + android:label="@string/app_name" |
| 63 | + android:theme="@style/LoginScreenTheme" |
| 64 | + android:windowSoftInputMode="adjustResize"></activity> |
65 | 65 | <activity |
66 | | - android:name="org.hisp.dhis.android.trackercapture.MainActivity" |
| 66 | + android:name=".MainActivity" |
67 | 67 | android:configChanges="orientation|keyboardHidden|screenSize" |
68 | 68 | android:label="@string/title_activity_main" |
69 | | - android:windowSoftInputMode="adjustPan" > |
| 69 | + android:windowSoftInputMode="adjustPan"></activity> |
| 70 | + <activity |
| 71 | + android:name=".activities.HolderActivity" |
| 72 | + android:configChanges="orientation|keyboardHidden|screenSize" |
| 73 | + android:windowSoftInputMode="adjustPan|stateHidden"> |
| 74 | + |
70 | 75 | </activity> |
71 | 76 |
|
72 | | - <receiver |
73 | | - android:name="org.hisp.dhis.android.sdk.services.PeriodicSynchronizer"> |
74 | | - </receiver> |
75 | | - <receiver |
76 | | - android:name="org.hisp.dhis.android.sdk.services.PeriodicSynchronizerAutoStarter"> |
| 77 | + <receiver android:name="org.hisp.dhis.android.sdk.services.PeriodicSynchronizer"></receiver> |
| 78 | + <receiver android:name="org.hisp.dhis.android.sdk.services.PeriodicSynchronizerAutoStarter"> |
77 | 79 | <intent-filter> |
78 | 80 | <action android:name="android.intent.action.BOOT_COMPLETED" /> |
79 | 81 | </intent-filter> |
|
82 | 84 | <service |
83 | 85 | android:name="org.hisp.dhis.android.sdk.services.StartPeriodicSynchronizerService" |
84 | 86 | android:enabled="true" /> |
| 87 | + <service |
| 88 | + android:name="org.hisp.dhis.android.trackercapture.export.TrackerExportService" |
| 89 | + android:enabled="true" |
| 90 | + android:exported="true"> |
| 91 | + <intent-filter> |
| 92 | + <action android:name="org.hisp.dhis.android.trackercapture.export.TrackerExportService.EXPORT" /> |
| 93 | + </intent-filter> |
| 94 | + </service> |
85 | 95 |
|
86 | 96 | <!-- Specify the next screen after SplashScreen if user already logged in --> |
87 | | - <meta-data android:name="nextClassName" android:value="org.hisp.dhis.android.trackercapture.MainActivity" /> |
| 97 | + <meta-data |
| 98 | + android:name="nextClassName" |
| 99 | + android:value="org.hisp.dhis.android.trackercapture.MainActivity" /> |
| 100 | + <meta-data |
| 101 | + android:name="io.fabric.ApiKey" |
| 102 | + android:value="a5caa46009119f5e584e4964c30a922095b1075c" /> |
| 103 | + <provider |
| 104 | + android:name="org.hisp.dhis.android.trackercapture.export.DBProvider" |
| 105 | + android:authorities="org.hisp.dhis.android.trackercapture.export.ExportData" |
| 106 | + android:exported="false" |
| 107 | + android:grantUriPermissions="true"> |
| 108 | + <meta-data |
| 109 | + android:name="android.support.FILE_PROVIDER_PATHS" |
| 110 | + android:resource="@xml/file_paths" /> |
| 111 | + </provider> |
88 | 112 | </application> |
| 113 | + |
89 | 114 | </manifest> |
0 commit comments