|
|
@ -15,26 +15,40 @@
|
|
|
|
limitations under the License.
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 定义应用程序的名称和版本号 -->
|
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
package="net.micode.notes"
|
|
|
|
package="net.micode.notes"
|
|
|
|
android:versionCode="1"
|
|
|
|
android:versionCode="1"
|
|
|
|
android:versionName="0.1" >
|
|
|
|
android:versionName="0.1" >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 指定应用程序需要支持的最低的 Android SDK 版本 -->
|
|
|
|
<uses-sdk android:minSdkVersion="14" />
|
|
|
|
<uses-sdk android:minSdkVersion="14" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 权限声明 -->
|
|
|
|
|
|
|
|
<!--- 写入 SD 卡的权限 -->
|
|
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
|
|
|
|
|
|
<!--- 创建、删除有关快捷方式的权限 -->
|
|
|
|
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
|
|
|
|
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
|
|
|
|
|
|
|
|
<!--- 访问网络的权限 -->
|
|
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
|
|
|
|
|
|
<!--- 读取联系人的权限 -->
|
|
|
|
<uses-permission android:name="android.permission.READ_CONTACTS" />
|
|
|
|
<uses-permission android:name="android.permission.READ_CONTACTS" />
|
|
|
|
|
|
|
|
<!--- 账户管理的权限 -->
|
|
|
|
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
|
|
|
|
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
|
|
|
|
|
|
|
|
<!--- 验证账户的权限 -->
|
|
|
|
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
|
|
|
|
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
|
|
|
|
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
|
|
|
|
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
|
|
|
|
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
|
|
|
|
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
|
|
|
|
|
|
|
|
<!--- 开机自动运行权限 -->
|
|
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 应用程序组件声明 -->
|
|
|
|
|
|
|
|
<!--- 定义应用程序的图标和名称 -->
|
|
|
|
<application
|
|
|
|
<application
|
|
|
|
android:icon="@drawable/icon_app"
|
|
|
|
android:icon="@drawable/icon_app"
|
|
|
|
android:label="@string/app_name" >
|
|
|
|
android:label="@string/app_name" >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 应用程序的入口 NotesListActivity -->
|
|
|
|
<activity
|
|
|
|
<activity
|
|
|
|
android:name=".ui.NotesListActivity"
|
|
|
|
android:name=".ui.NotesListActivity"
|
|
|
|
android:exported="true"
|
|
|
|
android:exported="true"
|
|
|
@ -42,60 +56,71 @@
|
|
|
|
android:label="@string/app_name"
|
|
|
|
android:label="@string/app_name"
|
|
|
|
android:launchMode="singleTop"
|
|
|
|
android:launchMode="singleTop"
|
|
|
|
android:theme="@style/NoteTheme"
|
|
|
|
android:theme="@style/NoteTheme"
|
|
|
|
android:uiOptions="splitActionBarWhenNarrow"
|
|
|
|
|
|
|
|
android:windowSoftInputMode="adjustPan" >
|
|
|
|
android:windowSoftInputMode="adjustPan" >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 定义该 Activity 为启动器,即默认启动的 Activity -->
|
|
|
|
<intent-filter>
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
|
|
</intent-filter>
|
|
|
|
</intent-filter>
|
|
|
|
</activity>
|
|
|
|
</activity>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 笔记编辑 Activity -->
|
|
|
|
<activity
|
|
|
|
<activity
|
|
|
|
android:name=".ui.NoteEditActivity"
|
|
|
|
android:name=".ui.NoteEditActivity"
|
|
|
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
|
|
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
|
|
|
android:launchMode="singleTop"
|
|
|
|
android:launchMode="singleTop"
|
|
|
|
android:theme="@style/NoteTheme" >
|
|
|
|
android:theme="@style/NoteTheme" >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 笔记编辑 Activity 的 Intent Filter,用于接收其他应用程序发送过来的消息 -->
|
|
|
|
<intent-filter>
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.intent.action.VIEW" />
|
|
|
|
<action android:name="android.intent.action.VIEW" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
|
|
|
|
<!--- 笔记编辑 Activity 可以处理的 MIME 类型 -->
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/text_note" android:scheme="content" android:host="com.example.notes.provider" android:path="/notes" />
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/text_note" android:scheme="content" android:host="com.example.notes.provider" android:path="/notes" />
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/call_note" android:scheme="content" android:host="com.example.notes.provider" android:path="/notes" />
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/call_note" android:scheme="content" android:host="com.example.notes.provider" android:path="/notes" />
|
|
|
|
</intent-filter>
|
|
|
|
</intent-filter>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 笔记编辑 Activity 的 Intent Filter,用于接收其他应用程序发送过来的消息 -->
|
|
|
|
<intent-filter>
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.intent.action.INSERT_OR_EDIT" />
|
|
|
|
<action android:name="android.intent.action.INSERT_OR_EDIT" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
|
|
|
|
<!--- 笔记编辑 Activity 可以处理的 MIME 类型 -->
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/text_note" />
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/text_note" />
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/call_note" />
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/call_note" />
|
|
|
|
</intent-filter>
|
|
|
|
</intent-filter>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 搜索 Intent Filter,用于响应搜索请求 -->
|
|
|
|
<intent-filter>
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.intent.action.SEARCH" />
|
|
|
|
<action android:name="android.intent.action.SEARCH" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
</intent-filter>
|
|
|
|
</intent-filter>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 搜索框的配置信息 -->
|
|
|
|
<meta-data
|
|
|
|
<meta-data
|
|
|
|
android:name="android.app.searchable"
|
|
|
|
android:name="android.app.searchable"
|
|
|
|
android:resource="@xml/searchable" />
|
|
|
|
android:resource="@xml/searchable" />
|
|
|
|
</activity>
|
|
|
|
</activity>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 笔记供应器,用于共享笔记数据 -->
|
|
|
|
<provider
|
|
|
|
<provider
|
|
|
|
android:name="net.micode.notes.data.NotesProvider"
|
|
|
|
android:name="net.micode.notes.data.NotesProvider"
|
|
|
|
android:authorities="micode_notes"
|
|
|
|
android:authorities="micode_notes"
|
|
|
|
android:multiprocess="true" />
|
|
|
|
android:multiprocess="true" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 笔记小部件,支持两种大小 -->
|
|
|
|
<receiver
|
|
|
|
<receiver
|
|
|
|
android:name=".widget.NoteWidgetProvider_2x"
|
|
|
|
android:name=".widget.NoteWidgetProvider_2x"
|
|
|
|
android:label="@string/app_widget2x2" >
|
|
|
|
android:label="@string/app_widget2x2" >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 笔记小部件的 Intent Filter,用于接收系统广播和小部件更新操作 -->
|
|
|
|
<intent-filter>
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
|
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
|
|
<action android:name="android.appwidget.action.APPWIDGET_DELETED" />
|
|
|
|
<action android:name="android.appwidget.action.APPWIDGET_DELETED" />
|
|
|
|
<action android:name="android.intent.action.PRIVACY_MODE_CHANGED" />
|
|
|
|
<action android:name="android.intent.action.PRIVACY_MODE_CHANGED" />
|
|
|
|
</intent-filter>
|
|
|
|
</intent-filter>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 笔记小部件的配置信息 -->
|
|
|
|
<meta-data
|
|
|
|
<meta-data
|
|
|
|
android:name="android.appwidget.provider"
|
|
|
|
android:name="android.appwidget.provider"
|
|
|
|
android:resource="@xml/widget_2x_info" />
|
|
|
|
android:resource="@xml/widget_2x_info" />
|
|
|
@ -104,28 +129,33 @@
|
|
|
|
android:name=".widget.NoteWidgetProvider_4x"
|
|
|
|
android:name=".widget.NoteWidgetProvider_4x"
|
|
|
|
android:label="@string/app_widget4x4" >
|
|
|
|
android:label="@string/app_widget4x4" >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 笔记小部件的 Intent Filter,用于接收系统广播和小部件更新操作 -->
|
|
|
|
<intent-filter>
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
|
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
|
|
<action android:name="android.appwidget.action.APPWIDGET_DELETED" />
|
|
|
|
<action android:name="android.appwidget.action.APPWIDGET_DELETED" />
|
|
|
|
<action android:name="android.intent.action.PRIVACY_MODE_CHANGED" />
|
|
|
|
<action android:name="android.intent.action.PRIVACY_MODE_CHANGED" />
|
|
|
|
</intent-filter>
|
|
|
|
</intent-filter>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 笔记小部件的配置信息 -->
|
|
|
|
<meta-data
|
|
|
|
<meta-data
|
|
|
|
android:name="android.appwidget.provider"
|
|
|
|
android:name="android.appwidget.provider"
|
|
|
|
android:resource="@xml/widget_4x_info" />
|
|
|
|
android:resource="@xml/widget_4x_info" />
|
|
|
|
</receiver>
|
|
|
|
</receiver>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 启动时需要初始化闹钟服务 -->
|
|
|
|
<receiver android:name=".ui.AlarmInitReceiver" >
|
|
|
|
<receiver android:name=".ui.AlarmInitReceiver" >
|
|
|
|
<intent-filter>
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
|
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
|
|
</intent-filter>
|
|
|
|
</intent-filter>
|
|
|
|
</receiver>
|
|
|
|
</receiver>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 闹钟服务 -->
|
|
|
|
<receiver
|
|
|
|
<receiver
|
|
|
|
android:name="net.micode.notes.ui.AlarmReceiver"
|
|
|
|
android:name="net.micode.notes.ui.AlarmReceiver"
|
|
|
|
android:process=":remote" >
|
|
|
|
android:process=":remote" >
|
|
|
|
</receiver>
|
|
|
|
</receiver>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 闹钟提示 Activity -->
|
|
|
|
<activity
|
|
|
|
<activity
|
|
|
|
android:name=".ui.AlarmAlertActivity"
|
|
|
|
android:name=".ui.AlarmAlertActivity"
|
|
|
|
android:label="@string/app_name"
|
|
|
|
android:label="@string/app_name"
|
|
|
@ -133,6 +163,7 @@
|
|
|
|
android:theme="@android:style/Theme.Holo.Wallpaper.NoTitleBar" >
|
|
|
|
android:theme="@android:style/Theme.Holo.Wallpaper.NoTitleBar" >
|
|
|
|
</activity>
|
|
|
|
</activity>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 首选项 Activity -->
|
|
|
|
<activity
|
|
|
|
<activity
|
|
|
|
android:name="net.micode.notes.ui.NotesPreferenceActivity"
|
|
|
|
android:name="net.micode.notes.ui.NotesPreferenceActivity"
|
|
|
|
android:label="@string/preferences_title"
|
|
|
|
android:label="@string/preferences_title"
|
|
|
@ -140,11 +171,13 @@
|
|
|
|
android:theme="@android:style/Theme.Holo.Light" >
|
|
|
|
android:theme="@android:style/Theme.Holo.Light" >
|
|
|
|
</activity>
|
|
|
|
</activity>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- GTask 同步服务 -->
|
|
|
|
<service
|
|
|
|
<service
|
|
|
|
android:name="net.micode.notes.gtask.remote.GTaskSyncService"
|
|
|
|
android:name="net.micode.notes.gtask.remote.GTaskSyncService"
|
|
|
|
android:exported="false" >
|
|
|
|
android:exported="false" >
|
|
|
|
</service>
|
|
|
|
</service>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--- 默认搜索 Activity -->
|
|
|
|
<meta-data
|
|
|
|
<meta-data
|
|
|
|
android:name="android.app.default_searchable"
|
|
|
|
android:name="android.app.default_searchable"
|
|
|
|
android:value=".ui.NoteEditActivity" />
|
|
|
|
android:value=".ui.NoteEditActivity" />
|
|
|
|