The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2007 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
Roman Nurik | a717880 | 2009-11-23 17:11:04 -0500 | [diff] [blame] | 7 | |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 8 | http://www.apache.org/licenses/LICENSE-2.0 |
Roman Nurik | a717880 | 2009-11-23 17:11:04 -0500 | [diff] [blame] | 9 | |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| 17 | <!-- Declare the contents of this Android application. The namespace |
| 18 | attribute brings in the Android platform namespace, and the package |
| 19 | supplies a unique name for the application. When writing your |
| 20 | own application, the package name must be changed from "com.example.*" |
| 21 | to come from a domain that you own or have control over. --> |
| 22 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
Scott Main | 875234d | 2010-10-19 17:19:03 -0700 | [diff] [blame] | 23 | package="com.example.android.notepad" > |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 24 | |
Scott Main | 875234d | 2010-10-19 17:19:03 -0700 | [diff] [blame] | 25 | <application android:icon="@drawable/app_notes" |
| 26 | android:label="@string/app_name" > |
| 27 | <provider android:name="NotePadProvider" |
| 28 | android:authorities="com.example.notepad.provider.NotePad" /> |
| 29 | |
| 30 | <activity android:name="NotesList" |
| 31 | android:label="@string/title_notes_list"> |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 32 | <intent-filter> |
| 33 | <action android:name="android.intent.action.MAIN" /> |
| 34 | <category android:name="android.intent.category.LAUNCHER" /> |
| 35 | </intent-filter> |
| 36 | <intent-filter> |
| 37 | <action android:name="android.intent.action.VIEW" /> |
| 38 | <action android:name="android.intent.action.EDIT" /> |
| 39 | <action android:name="android.intent.action.PICK" /> |
| 40 | <category android:name="android.intent.category.DEFAULT" /> |
| 41 | <data android:mimeType="vnd.android.cursor.dir/vnd.google.note" /> |
| 42 | </intent-filter> |
| 43 | <intent-filter> |
| 44 | <action android:name="android.intent.action.GET_CONTENT" /> |
| 45 | <category android:name="android.intent.category.DEFAULT" /> |
| 46 | <data android:mimeType="vnd.android.cursor.item/vnd.google.note" /> |
| 47 | </intent-filter> |
| 48 | </activity> |
Roman Nurik | a717880 | 2009-11-23 17:11:04 -0500 | [diff] [blame] | 49 | |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 50 | <activity android:name="NoteEditor" |
| 51 | android:theme="@android:style/Theme.Light" |
Scott Main | 875234d | 2010-10-19 17:19:03 -0700 | [diff] [blame] | 52 | android:configChanges="keyboardHidden|orientation"> |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 53 | <!-- This filter says that we can view or edit the data of |
| 54 | a single note --> |
| 55 | <intent-filter android:label="@string/resolve_edit"> |
| 56 | <action android:name="android.intent.action.VIEW" /> |
| 57 | <action android:name="android.intent.action.EDIT" /> |
Scott Main | 875234d | 2010-10-19 17:19:03 -0700 | [diff] [blame] | 58 | <action android:name="com.android.notes.action.EDIT_NOTE" /> |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 59 | <category android:name="android.intent.category.DEFAULT" /> |
| 60 | <data android:mimeType="vnd.android.cursor.item/vnd.google.note" /> |
| 61 | </intent-filter> |
| 62 | |
| 63 | <!-- This filter says that we can create a new note inside |
| 64 | of a directory of notes. --> |
| 65 | <intent-filter> |
| 66 | <action android:name="android.intent.action.INSERT" /> |
| 67 | <category android:name="android.intent.category.DEFAULT" /> |
| 68 | <data android:mimeType="vnd.android.cursor.dir/vnd.google.note" /> |
| 69 | </intent-filter> |
| 70 | |
| 71 | </activity> |
Roman Nurik | a717880 | 2009-11-23 17:11:04 -0500 | [diff] [blame] | 72 | |
| 73 | <activity android:name="TitleEditor" |
| 74 | android:label="@string/title_edit_title" |
| 75 | android:theme="@android:style/Theme.Dialog" |
Scott Main | 875234d | 2010-10-19 17:19:03 -0700 | [diff] [blame] | 76 | android:icon="@drawable/ic_menu_edit" |
Roman Nurik | a717880 | 2009-11-23 17:11:04 -0500 | [diff] [blame] | 77 | android:windowSoftInputMode="stateVisible"> |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 78 | <!-- This activity implements an alternative action that can be |
| 79 | performed on notes: editing their title. It can be used as |
| 80 | a default operation if the user invokes this action, and is |
| 81 | available as an alternative action for any note data. --> |
| 82 | <intent-filter android:label="@string/resolve_title"> |
| 83 | <!-- This is the action we perform. It is a custom action we |
| 84 | define for our application, not a generic VIEW or EDIT |
| 85 | action since we are not a general note viewer/editor. --> |
| 86 | <action android:name="com.android.notepad.action.EDIT_TITLE" /> |
| 87 | <!-- DEFAULT: execute if being directly invoked. --> |
| 88 | <category android:name="android.intent.category.DEFAULT" /> |
| 89 | <!-- ALTERNATIVE: show as an alternative action when the user is |
| 90 | working with this type of data. --> |
| 91 | <category android:name="android.intent.category.ALTERNATIVE" /> |
| 92 | <!-- SELECTED_ALTERNATIVE: show as an alternative action the user |
| 93 | can perform when selecting this type of data. --> |
| 94 | <category android:name="android.intent.category.SELECTED_ALTERNATIVE" /> |
| 95 | <!-- This is the data type we operate on. --> |
| 96 | <data android:mimeType="vnd.android.cursor.item/vnd.google.note" /> |
| 97 | </intent-filter> |
| 98 | </activity> |
Roman Nurik | a717880 | 2009-11-23 17:11:04 -0500 | [diff] [blame] | 99 | |
| 100 | <activity android:name="NotesLiveFolder" android:label="@string/live_folder_name" |
| 101 | android:icon="@drawable/live_folder_notes"> |
| 102 | <intent-filter> |
| 103 | <action android:name="android.intent.action.CREATE_LIVE_FOLDER" /> |
| 104 | <category android:name="android.intent.category.DEFAULT" /> |
| 105 | </intent-filter> |
| 106 | </activity> |
| 107 | |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 108 | </application> |
Roman Nurik | a717880 | 2009-11-23 17:11:04 -0500 | [diff] [blame] | 109 | |
Scott Main | 875234d | 2010-10-19 17:19:03 -0700 | [diff] [blame] | 110 | <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/> |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 111 | </manifest> |
| 112 | |