1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <!--
3
+ Copyright (C) 2007 The Android Open Source Project
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ -->
17
+
18
+ <!--
19
+ Declare the contents of this Android application. The namespace
20
+ attribute brings in the Android platform namespace, and the package
21
+ supplies a unique name for the application. When writing your
22
+ own application, the package name must be changed from "com.example.*"
23
+ to come from a domain that you own or have control over.
24
+ -->
25
+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
26
+ package =" com.example.android.notepad" >
27
+
28
+ <application
29
+ android : icon =" @drawable/app_notes"
30
+ android : label =" @string/app_name" >
31
+
32
+ <!-- <provider
33
+ android:name="com.google.code.p.leveldb.provider.NotePadLevelDBProvider"
34
+ android:authorities="com.google.provider.NotePad" />-->
35
+
36
+ <provider
37
+ android : name =" com.google.code.p.leveldb.provider.LevelDBProvider"
38
+ android : authorities =" com.google.code.p.leveldb.provider.UnstructuredData" />
39
+
40
+ <!--
41
+ <provider android:name="com.google.code.p.leveldb.provider.NotePadSQLiteProvider"
42
+ android:authorities="com.google.provider.NotePad"
43
+ />
44
+ -->
45
+ <activity
46
+ android : name =" .DBBenchmarkActivity"
47
+ android : label =" Benchmark Inserts" >
48
+ <intent-filter >
49
+ <action android : name =" android.intent.action.MAIN" />
50
+
51
+ <category android : name =" android.intent.category.LAUNCHER" />
52
+ </intent-filter >
53
+ </activity >
54
+ <activity
55
+ android : name =" NotesList"
56
+ android : label =" @string/title_notes_list" >
57
+
58
+ <intent-filter >
59
+ <action android : name =" android.intent.action.VIEW" />
60
+ <action android : name =" android.intent.action.EDIT" />
61
+ <action android : name =" android.intent.action.PICK" />
62
+
63
+ <category android : name =" android.intent.category.DEFAULT" />
64
+
65
+ <data android : mimeType =" vnd.android.cursor.dir/vnd.google.note" />
66
+ </intent-filter >
67
+ <intent-filter >
68
+ <action android : name =" android.intent.action.GET_CONTENT" />
69
+
70
+ <category android : name =" android.intent.category.DEFAULT" />
71
+
72
+ <data android : mimeType =" vnd.android.cursor.item/vnd.google.note" />
73
+ </intent-filter >
74
+ </activity >
75
+ <activity
76
+ android : name =" NoteEditor"
77
+ android : configChanges =" keyboardHidden|orientation"
78
+ android : label =" @string/title_note"
79
+ android : screenOrientation =" sensor"
80
+ android : theme =" @android:style/Theme.Light" >
81
+
82
+ <!--
83
+ This filter says that we can view or edit the data of
84
+ a single note
85
+ -->
86
+ <intent-filter android : label =" @string/resolve_edit" >
87
+ <action android : name =" android.intent.action.VIEW" />
88
+ <action android : name =" android.intent.action.EDIT" />
89
+ <action android : name =" com.android.notepad.action.EDIT_NOTE" />
90
+
91
+ <category android : name =" android.intent.category.DEFAULT" />
92
+
93
+ <data android : mimeType =" vnd.android.cursor.item/vnd.google.note" />
94
+ </intent-filter >
95
+
96
+ <!--
97
+ This filter says that we can create a new note inside
98
+ of a directory of notes.
99
+ -->
100
+ <intent-filter >
101
+ <action android : name =" android.intent.action.INSERT" />
102
+
103
+ <category android : name =" android.intent.category.DEFAULT" />
104
+
105
+ <data android : mimeType =" vnd.android.cursor.dir/vnd.google.note" />
106
+ </intent-filter >
107
+ </activity >
108
+ <activity
109
+ android : name =" TitleEditor"
110
+ android : label =" @string/title_edit_title"
111
+ android : theme =" @android:style/Theme.Dialog"
112
+ android : windowSoftInputMode =" stateVisible" >
113
+
114
+ <!--
115
+ This activity implements an alternative action that can be
116
+ performed on notes: editing their title. It can be used as
117
+ a default operation if the user invokes this action, and is
118
+ available as an alternative action for any note data.
119
+ -->
120
+ <intent-filter android : label =" @string/resolve_title" >
121
+
122
+ <!--
123
+ This is the action we perform. It is a custom action we
124
+ define for our application, not a generic VIEW or EDIT
125
+ action since we are not a general note viewer/editor.
126
+ -->
127
+ <action android : name =" com.android.notepad.action.EDIT_TITLE" />
128
+ <!-- DEFAULT: execute if being directly invoked. -->
129
+ <category android : name =" android.intent.category.DEFAULT" />
130
+ <!--
131
+ ALTERNATIVE: show as an alternative action when the user is
132
+ working with this type of data.
133
+ -->
134
+ <category android : name =" android.intent.category.ALTERNATIVE" />
135
+ <!--
136
+ SELECTED_ALTERNATIVE: show as an alternative action the user
137
+ can perform when selecting this type of data.
138
+ -->
139
+ <category android : name =" android.intent.category.SELECTED_ALTERNATIVE" />
140
+ <!-- This is the data type we operate on. -->
141
+ <data android : mimeType =" vnd.android.cursor.item/vnd.google.note" />
142
+ </intent-filter >
143
+ </activity >
144
+ <activity
145
+ android : name =" NotesLiveFolder"
146
+ android : icon =" @drawable/live_folder_notes"
147
+ android : label =" @string/live_folder_name" >
148
+ <intent-filter >
149
+ <action android : name =" android.intent.action.CREATE_LIVE_FOLDER" />
150
+
151
+ <category android : name =" android.intent.category.DEFAULT" />
152
+ </intent-filter >
153
+ </activity >
154
+ </application >
155
+
156
+ <uses-sdk
157
+ android : minSdkVersion =" 3"
158
+ android : targetSdkVersion =" 4" />
159
+
160
+ </manifest >
0 commit comments