blob: b87dfe312dcd75482ba2678ff3bc90275985c349 [file] [log] [blame]
The Android Open Source Project52d4c302009-03-03 19:29:09 -08001<?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 Nurika7178802009-11-23 17:11:04 -05007
The Android Open Source Project52d4c302009-03-03 19:29:09 -08008 http://www.apache.org/licenses/LICENSE-2.0
Roman Nurika7178802009-11-23 17:11:04 -05009
The Android Open Source Project52d4c302009-03-03 19:29:09 -080010 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 Main875234d2010-10-19 17:19:03 -070023 package="com.example.android.notepad" >
The Android Open Source Project52d4c302009-03-03 19:29:09 -080024
Scott Main875234d2010-10-19 17:19:03 -070025 <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 Project52d4c302009-03-03 19:29:09 -080032 <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 Nurika7178802009-11-23 17:11:04 -050049
The Android Open Source Project52d4c302009-03-03 19:29:09 -080050 <activity android:name="NoteEditor"
51 android:theme="@android:style/Theme.Light"
Scott Main875234d2010-10-19 17:19:03 -070052 android:configChanges="keyboardHidden|orientation">
The Android Open Source Project52d4c302009-03-03 19:29:09 -080053 <!-- 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 Main875234d2010-10-19 17:19:03 -070058 <action android:name="com.android.notes.action.EDIT_NOTE" />
The Android Open Source Project52d4c302009-03-03 19:29:09 -080059 <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 Nurika7178802009-11-23 17:11:04 -050072
73 <activity android:name="TitleEditor"
74 android:label="@string/title_edit_title"
75 android:theme="@android:style/Theme.Dialog"
Scott Main875234d2010-10-19 17:19:03 -070076 android:icon="@drawable/ic_menu_edit"
Roman Nurika7178802009-11-23 17:11:04 -050077 android:windowSoftInputMode="stateVisible">
The Android Open Source Project52d4c302009-03-03 19:29:09 -080078 <!-- 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 Nurika7178802009-11-23 17:11:04 -050099
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 Project52d4c302009-03-03 19:29:09 -0800108 </application>
Roman Nurika7178802009-11-23 17:11:04 -0500109
Scott Main875234d2010-10-19 17:19:03 -0700110 <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/>
The Android Open Source Project52d4c302009-03-03 19:29:09 -0800111</manifest>
112