|
|
@ -15,13 +15,16 @@
|
|
|
|
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" >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 声明应用程序所需的最低 SDK 版本 -->
|
|
|
|
<uses-sdk android:minSdkVersion="14" />
|
|
|
|
<uses-sdk android:minSdkVersion="14" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 申请应用程序需要的权限 -->
|
|
|
|
<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" />
|
|
|
@ -32,9 +35,11 @@
|
|
|
|
<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" >
|
|
|
|
|
|
|
|
<!-- 定义主 activity -->
|
|
|
|
<activity
|
|
|
|
<activity
|
|
|
|
android:name=".ui.NotesListActivity"
|
|
|
|
android:name=".ui.NotesListActivity"
|
|
|
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
|
|
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
|
|
@ -43,26 +48,26 @@
|
|
|
|
android:theme="@style/NoteTheme"
|
|
|
|
android:theme="@style/NoteTheme"
|
|
|
|
android:uiOptions="splitActionBarWhenNarrow"
|
|
|
|
android:uiOptions="splitActionBarWhenNarrow"
|
|
|
|
android:windowSoftInputMode="adjustPan" >
|
|
|
|
android:windowSoftInputMode="adjustPan" >
|
|
|
|
|
|
|
|
<!-- 定义主 activity 的 intent-filter -->
|
|
|
|
<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" />
|
|
|
|
<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>
|
|
|
|
<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" />
|
|
|
@ -70,6 +75,7 @@
|
|
|
|
<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>
|
|
|
|
<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" />
|
|
|
|