89 lines
3.2 KiB
XML
89 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.ttstd.elderlyassistant">
|
|
|
|
<!--NFC权限-->
|
|
<uses-permission android:name="android.permission.NFC" />
|
|
<!--声明只有带NFC的手机才可以下载-->
|
|
<uses-feature
|
|
android:name="android.hardware.nfc"
|
|
android:required="true" />
|
|
|
|
|
|
<application
|
|
android:name=".base.BaseApplication"
|
|
android:allowBackup="true"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:label="@string/app_name"
|
|
android:roundIcon="@mipmap/ic_launcher_round"
|
|
android:supportsRtl="true"
|
|
android:theme="@style/AppTheme">
|
|
<activity
|
|
android:name=".activity.main.MainActivity"
|
|
android:exported="true"
|
|
android:launchMode="singleTop">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity
|
|
android:name=".activity.nfc.NfcActivity"
|
|
android:exported="true"
|
|
android:launchMode="singleTask"
|
|
android:permission="android.permission.NFC">
|
|
|
|
<!-- Offer to display anything with NDEF data -->
|
|
<intent-filter>
|
|
<action android:name="android.nfc.action.TECH_DISCOVERED" />
|
|
</intent-filter>
|
|
|
|
<meta-data
|
|
android:name="android.nfc.action.TECH_DISCOVERED"
|
|
android:resource="@xml/filter_nfc" />
|
|
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<data android:mimeType="vnd.android.cursor.item/ndef_msg" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
|
|
</activity>
|
|
|
|
<service
|
|
android:name="com.google.android.accessibility.selecttospeak.SelectToSpeakService"
|
|
android:exported="true"
|
|
android:label="@string/accessibility_service_label"
|
|
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
|
|
|
|
<!-- android:priority="10000" 可提高服务在设置中的权重,排在前面 -->
|
|
<intent-filter android:priority="10000">
|
|
<action android:name="android.accessibilityservice.AccessibilityService" />
|
|
</intent-filter>
|
|
|
|
<meta-data
|
|
android:name="android.accessibilityservice"
|
|
android:resource="@xml/accessibility_service_config" />
|
|
</service>
|
|
|
|
<provider
|
|
android:name="androidx.core.content.FileProvider"
|
|
android:authorities="${applicationId}.tag.provider"
|
|
android:exported="false"
|
|
android:grantUriPermissions="true">
|
|
<meta-data
|
|
android:name="android.support.FILE_PROVIDER_PATHS"
|
|
android:resource="@xml/provider_paths" />
|
|
</provider>
|
|
|
|
<meta-data
|
|
android:name="design_width_in_dp"
|
|
android:value="360" />
|
|
<meta-data
|
|
android:name="design_height_in_dp"
|
|
android:value="640" />
|
|
</application>
|
|
|
|
</manifest> |