|
|
|
|
@ -0,0 +1,112 @@
|
|
|
|
|
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
|
|
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
|
limitations under the License.
|
|
|
|
|
-->
|
|
|
|
|
<!-- AndroidManifest.xml:应用的配置清单,定义了应用的组件、权限和元数据 -->
|
|
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="net.micode.notes" android:versionCode="1" android:versionName="0.1">
|
|
|
|
|
<!-- 指定应用兼容的最低SDK版本为Android 4.0 (Ice Cream Sandwich) -->
|
|
|
|
|
<uses-sdk android:minSdkVersion="14"/>
|
|
|
|
|
|
|
|
|
|
<!-- 申请的权限列表 -->
|
|
|
|
|
<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"/> <!-- 开机启动权限 -->
|
|
|
|
|
|
|
|
|
|
<!-- 应用组件定义 -->
|
|
|
|
|
<application android:icon="@drawable/icon_app" android:label="@string/app_name">
|
|
|
|
|
<!-- 主活动:笔记列表界面 -->
|
|
|
|
|
<activity android:name=".ui.NotesListActivity" android:configChanges="keyboardHidden|orientation|screenSize" android:label="@string/app_name" android:launchMode="singleTop" android:theme="@style/NoteTheme" android:uiOptions="splitActionBarWhenNarrow" android:windowSoftInputMode="adjustPan">
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<!-- 指定此活动为应用启动入口 -->
|
|
|
|
|
<action android:name="android.intent.action.MAIN"/>
|
|
|
|
|
<category android:name="android.intent.category.LAUNCHER"/>
|
|
|
|
|
</intent-filter>
|
|
|
|
|
</activity>
|
|
|
|
|
|
|
|
|
|
<!-- 笔记编辑活动 -->
|
|
|
|
|
<activity android:name=".ui.NoteEditActivity" android:configChanges="keyboardHidden|orientation|screenSize" android:launchMode="singleTop" android:theme="@style/NoteTheme">
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<!-- 支持查看文本笔记和通话笔记 -->
|
|
|
|
|
<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=".widget.NoteWidgetProvider_2x" 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=".widget.NoteWidgetProvider_4x" 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=".ui.AlarmInitReceiver">
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
|
|
|
|
</intent-filter>
|
|
|
|
|
</receiver>
|
|
|
|
|
|
|
|
|
|
<!-- 闹钟提醒接收器,在独立进程中运行 -->
|
|
|
|
|
<receiver android:name="net.micode.notes.ui.AlarmReceiver" android:process=":remote"> </receiver>
|
|
|
|
|
|
|
|
|
|
<!-- 闹钟提醒活动 -->
|
|
|
|
|
<activity android:name=".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"> </activity>
|
|
|
|
|
|
|
|
|
|
<!-- Google任务同步服务 -->
|
|
|
|
|
<service android:name="net.micode.notes.gtask.remote.GTaskSyncService" android:exported="false"> </service>
|
|
|
|
|
|
|
|
|
|
<!-- 设置默认搜索活动 -->
|
|
|
|
|
<meta-data android:name="android.app.default_searchable" android:value=".ui.NoteEditActivity"/>
|
|
|
|
|
</application>
|
|
|
|
|
</manifest>
|