|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
package="net.micode.notes"
|
|
|
|
|
android:versionCode="1"
|
|
|
|
|
android:versionName="0.1" > <!-- 使用的SDK版本 -->
|
|
|
|
|
<uses-sdk
|
|
|
|
|
android:minSdkVersion="21"
|
|
|
|
|
android:targetSdkVersion="21" />
|
|
|
|
|
<!-- 应用需要的权限 -->
|
|
|
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
|
|
|
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
|
|
|
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
|
|
|
<uses-permission android:name="android.permission.READ_CONTACTS" />
|
|
|
|
|
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
|
|
|
|
|
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
|
|
|
|
|
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
|
|
|
|
|
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
|
|
|
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <!-- 授予读的权限 -->
|
|
|
|
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
|
|
|
|
|
|
|
|
|
<application
|
|
|
|
|
android:appComponentFactory="android.support.v4.app.CoreComponentFactory"
|
|
|
|
|
android:debuggable="true"
|
|
|
|
|
android:extractNativeLibs="true"
|
|
|
|
|
android:icon="@drawable/icon_app"
|
|
|
|
|
android:label="@string/app_name"
|
|
|
|
|
android:testOnly="true" >
|
|
|
|
|
<activity
|
|
|
|
|
android:name="net.micode.notes.ui.LoginActivity"
|
|
|
|
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
|
|
|
|
android:exported="true"
|
|
|
|
|
android:label="@string/app_name"
|
|
|
|
|
android:launchMode="singleTop"
|
|
|
|
|
android:theme="@style/NoteTheme"
|
|
|
|
|
android:windowSoftInputMode="adjustPan" >
|
|
|
|
|
|
|
|
|
|
<!-- android:uiOptions="splitActionBarWhenNarrow" -->
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
|
|
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
</activity>
|
|
|
|
|
<activity
|
|
|
|
|
android:name="net.micode.notes.ui.SplashActivity"
|
|
|
|
|
android:configChanges="orientation|keyboardHidden|screenSize"
|
|
|
|
|
android:exported="true"
|
|
|
|
|
android:label="@string/title_activity_splash"
|
|
|
|
|
android:theme="@style/Theme.Notes.Fullscreen" >
|
|
|
|
|
|
|
|
|
|
<!-- MAIN声明了应用的入口程序类,LAUNCHER声明了启动器可选择的启动程序 -->
|
|
|
|
|
<!--
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
-->
|
|
|
|
|
</activity>
|
|
|
|
|
<activity
|
|
|
|
|
android:name="net.micode.notes.ui.ChangePassword"
|
|
|
|
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
|
|
|
|
android:exported="true"
|
|
|
|
|
android:label="@string/app_name"
|
|
|
|
|
android:launchMode="singleTop"
|
|
|
|
|
android:theme="@style/NoteTheme"
|
|
|
|
|
android:windowSoftInputMode="adjustPan" >
|
|
|
|
|
</activity>
|
|
|
|
|
<activity
|
|
|
|
|
android:name="net.micode.notes.ui.SetPassword"
|
|
|
|
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
|
|
|
|
android:exported="true"
|
|
|
|
|
android:label="@string/app_name"
|
|
|
|
|
android:launchMode="singleTop"
|
|
|
|
|
android:theme="@style/NoteTheme"
|
|
|
|
|
android:windowSoftInputMode="adjustPan" >
|
|
|
|
|
</activity>
|
|
|
|
|
<activity
|
|
|
|
|
android:name="net.micode.notes.ui.DeletePassword"
|
|
|
|
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
|
|
|
|
android:exported="true"
|
|
|
|
|
android:label="@string/app_name"
|
|
|
|
|
android:launchMode="singleTop"
|
|
|
|
|
android:theme="@style/NoteTheme"
|
|
|
|
|
android:windowSoftInputMode="adjustPan" >
|
|
|
|
|
</activity>
|
|
|
|
|
|
|
|
|
|
<!-- 主Activity,启动器 -->
|
|
|
|
|
<activity
|
|
|
|
|
android:name="net.micode.notes.ui.NotesListActivity"
|
|
|
|
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
|
|
|
|
android:exported="true"
|
|
|
|
|
android:label="@string/app_name"
|
|
|
|
|
android:launchMode="singleTop"
|
|
|
|
|
android:theme="@style/NoteTheme"
|
|
|
|
|
android:windowSoftInputMode="adjustPan" >
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
-->
|
|
|
|
|
</activity> <!-- 编辑笔记的Activity -->
|
|
|
|
|
<activity
|
|
|
|
|
android:name="net.micode.notes.ui.NoteEditActivity"
|
|
|
|
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
|
|
|
|
android:exported="true"
|
|
|
|
|
android:launchMode="singleTop"
|
|
|
|
|
android:theme="@style/NoteTheme" >
|
|
|
|
|
|
|
|
|
|
<!-- 处理外部HTTP链接和编辑意图 -->
|
|
|
|
|
<intent-filter android:scheme="http" >
|
|
|
|
|
<action android:name="android.intent.action.VIEW" />
|
|
|
|
|
|
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
|
|
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/text_note" />
|
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/call_note" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
<!-- 处理插入或编辑意图 -->
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.intent.action.INSERT_OR_EDIT" />
|
|
|
|
|
|
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
|
|
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/text_note" />
|
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/call_note" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
<!-- 处理搜索意图 -->
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.intent.action.SEARCH" />
|
|
|
|
|
|
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
<!-- 搜索配置 -->
|
|
|
|
|
<meta-data
|
|
|
|
|
android:name="android.app.searchable"
|
|
|
|
|
android:resource="@xml/searchable" />
|
|
|
|
|
</activity> <!-- 提供者:用于管理笔记数据 -->
|
|
|
|
|
<provider
|
|
|
|
|
android:name="net.micode.notes.data.NotesProvider"
|
|
|
|
|
android:authorities="micode_notes"
|
|
|
|
|
android:multiprocess="true" /> <!-- 小部件提供者:2x2尺寸 -->
|
|
|
|
|
<receiver
|
|
|
|
|
android:name="net.micode.notes.widget.NoteWidgetProvider_2x"
|
|
|
|
|
android:exported="true"
|
|
|
|
|
android:label="@string/app_widget2x2" >
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
|
|
|
<action android:name="android.appwidget.action.APPWIDGET_DELETED" />
|
|
|
|
|
<action android:name="android.intent.action.PRIVACY_MODE_CHANGED" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
|
|
|
|
|
<meta-data
|
|
|
|
|
android:name="android.appwidget.provider"
|
|
|
|
|
android:resource="@xml/widget_2x_info" />
|
|
|
|
|
</receiver> <!-- 小部件提供者:4x4尺寸 -->
|
|
|
|
|
<receiver
|
|
|
|
|
android:name="net.micode.notes.widget.NoteWidgetProvider_4x"
|
|
|
|
|
android:exported="true"
|
|
|
|
|
android:label="@string/app_widget4x4" >
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
|
|
|
<action android:name="android.appwidget.action.APPWIDGET_DELETED" />
|
|
|
|
|
<action android:name="android.intent.action.PRIVACY_MODE_CHANGED" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
|
|
|
|
|
<meta-data
|
|
|
|
|
android:name="android.appwidget.provider"
|
|
|
|
|
android:resource="@xml/widget_4x_info" />
|
|
|
|
|
</receiver> <!-- 启动完成时初始化闹钟 -->
|
|
|
|
|
<receiver
|
|
|
|
|
android:name="net.micode.notes.ui.AlarmInitReceiver"
|
|
|
|
|
android:exported="true" >
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
</receiver> <!-- 闹钟接收器:运行在远程进程中 -->
|
|
|
|
|
<receiver
|
|
|
|
|
android:name="net.micode.notes.ui.AlarmReceiver"
|
|
|
|
|
android:process=":remote" /> <!-- 闹钟提醒Activity -->
|
|
|
|
|
<activity
|
|
|
|
|
android:name="net.micode.notes.ui.AlarmAlertActivity"
|
|
|
|
|
android:label="@string/app_name"
|
|
|
|
|
android:launchMode="singleInstance"
|
|
|
|
|
android:theme="@android:style/Theme.Holo.Wallpaper.NoTitleBar" /> <!-- 设置Activity -->
|
|
|
|
|
<activity
|
|
|
|
|
android:name="net.micode.notes.ui.NotesPreferenceActivity"
|
|
|
|
|
android:label="@string/preferences_title"
|
|
|
|
|
android:launchMode="singleTop"
|
|
|
|
|
android:theme="@android:style/Theme.Holo.Light" /> <!-- 任务同步服务 -->
|
|
|
|
|
<service
|
|
|
|
|
android:name="net.micode.notes.gtask.remote.GTaskSyncService"
|
|
|
|
|
android:exported="false" /> <!-- 默认搜索设置 -->
|
|
|
|
|
<meta-data
|
|
|
|
|
android:name="android.app.default_searchable"
|
|
|
|
|
android:value=".ui.NoteEditActivity" />
|
|
|
|
|
</application>
|
|
|
|
|
|
|
|
|
|
</manifest>
|