blob: ead782925382458297909160ac016d0b19cb7584 [file] [log] [blame]
The Android Open Source Project52d4c302009-03-03 19:29:09 -08001<?xml version="1.0" encoding="utf-8"?>
Joe Malin70b18692010-08-09 17:18:13 -07002<!-- Copyright (C) 2007 The Android Open Source Project
The Android Open Source Project52d4c302009-03-03 19:29:09 -08003
Joe Malin70b18692010-08-09 17:18:13 -07004 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
Joe Malin70b18692010-08-09 17:18:13 -07008 http://www.apache.org/licenses/LICENSE-2.0
Roman Nurika7178802009-11-23 17:11:04 -05009
Joe Malin70b18692010-08-09 17:18:13 -070010 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.
The Android Open Source Project52d4c302009-03-03 19:29:09 -080015-->
16
Joe Malin70b18692010-08-09 17:18:13 -070017<!-- 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 Main29ecb2f2011-01-27 14:57:16 -080025 <uses-sdk android:minSdkVersion="11" />
26
Joe Malin70b18692010-08-09 17:18:13 -070027 <application android:icon="@drawable/app_notes"
28 android:label="@string/app_name"
29 >
30 <provider android:name="NotePadProvider"
31 android:authorities="com.google.provider.NotePad"
Dianne Hackborn0ada5c72010-10-05 14:03:53 -070032 android:exported="false">
33 <grant-uri-permission android:pathPattern=".*" />
34 </provider>
The Android Open Source Project52d4c302009-03-03 19:29:09 -080035
Joe Malin70b18692010-08-09 17:18:13 -070036 <activity android:name="NotesList" android:label="@string/title_notes_list">
The Android Open Source Project52d4c302009-03-03 19:29:09 -080037 <intent-filter>
38 <action android:name="android.intent.action.MAIN" />
39 <category android:name="android.intent.category.LAUNCHER" />
40 </intent-filter>
41 <intent-filter>
42 <action android:name="android.intent.action.VIEW" />
43 <action android:name="android.intent.action.EDIT" />
44 <action android:name="android.intent.action.PICK" />
45 <category android:name="android.intent.category.DEFAULT" />
46 <data android:mimeType="vnd.android.cursor.dir/vnd.google.note" />
47 </intent-filter>
48 <intent-filter>
49 <action android:name="android.intent.action.GET_CONTENT" />
50 <category android:name="android.intent.category.DEFAULT" />
51 <data android:mimeType="vnd.android.cursor.item/vnd.google.note" />
52 </intent-filter>
53 </activity>
Roman Nurika7178802009-11-23 17:11:04 -050054
Joe Malin70b18692010-08-09 17:18:13 -070055 <activity android:name="NoteEditor"
Dianne Hackborn7c69dba2011-01-23 13:28:02 -080056 android:theme="@android:style/Theme.Holo.Light"
The Android Open Source Project52d4c302009-03-03 19:29:09 -080057 android:screenOrientation="sensor"
Joe Malin70b18692010-08-09 17:18:13 -070058 android:configChanges="keyboardHidden|orientation"
59 >
60 <!-- This filter says that we can view or edit the data of
61 a single note -->
The Android Open Source Project52d4c302009-03-03 19:29:09 -080062 <intent-filter android:label="@string/resolve_edit">
63 <action android:name="android.intent.action.VIEW" />
64 <action android:name="android.intent.action.EDIT" />
65 <action android:name="com.android.notepad.action.EDIT_NOTE" />
66 <category android:name="android.intent.category.DEFAULT" />
67 <data android:mimeType="vnd.android.cursor.item/vnd.google.note" />
68 </intent-filter>
69
Joe Malin70b18692010-08-09 17:18:13 -070070 <!-- This filter says that we can create a new note inside
71 of a directory of notes. The INSERT action creates an
72 empty note; the PASTE action initializes a new note from
73 the current contents of the clipboard. -->
The Android Open Source Project52d4c302009-03-03 19:29:09 -080074 <intent-filter>
75 <action android:name="android.intent.action.INSERT" />
Dianne Hackborn4779ab62010-08-06 17:09:29 -070076 <action android:name="android.intent.action.PASTE" />
The Android Open Source Project52d4c302009-03-03 19:29:09 -080077 <category android:name="android.intent.category.DEFAULT" />
78 <data android:mimeType="vnd.android.cursor.dir/vnd.google.note" />
79 </intent-filter>
80
81 </activity>
Roman Nurika7178802009-11-23 17:11:04 -050082
Joe Malin70b18692010-08-09 17:18:13 -070083 <activity android:name="TitleEditor"
Roman Nurika7178802009-11-23 17:11:04 -050084 android:label="@string/title_edit_title"
Scott Maina00a0e72010-11-29 11:16:13 -080085 android:icon="@drawable/ic_menu_edit"
86 android:theme="@android:style/Theme.Holo.Dialog"
Roman Nurika7178802009-11-23 17:11:04 -050087 android:windowSoftInputMode="stateVisible">
Joe Malin70b18692010-08-09 17:18:13 -070088 <!-- This activity implements an alternative action that can be
89 performed on notes: editing their title. It can be used as
90 a default operation if the user invokes this action, and is
91 available as an alternative action for any note data. -->
The Android Open Source Project52d4c302009-03-03 19:29:09 -080092 <intent-filter android:label="@string/resolve_title">
Joe Malin70b18692010-08-09 17:18:13 -070093 <!-- This is the action we perform. It is a custom action we
94 define for our application, not a generic VIEW or EDIT
95 action since we are not a general note viewer/editor. -->
The Android Open Source Project52d4c302009-03-03 19:29:09 -080096 <action android:name="com.android.notepad.action.EDIT_TITLE" />
Joe Malin70b18692010-08-09 17:18:13 -070097 <!-- DEFAULT: execute if being directly invoked. -->
The Android Open Source Project52d4c302009-03-03 19:29:09 -080098 <category android:name="android.intent.category.DEFAULT" />
Joe Malin70b18692010-08-09 17:18:13 -070099 <!-- ALTERNATIVE: show as an alternative action when the user is
100 working with this type of data. -->
The Android Open Source Project52d4c302009-03-03 19:29:09 -0800101 <category android:name="android.intent.category.ALTERNATIVE" />
Joe Malin70b18692010-08-09 17:18:13 -0700102 <!-- SELECTED_ALTERNATIVE: show as an alternative action the user
103 can perform when selecting this type of data. -->
The Android Open Source Project52d4c302009-03-03 19:29:09 -0800104 <category android:name="android.intent.category.SELECTED_ALTERNATIVE" />
Joe Malin70b18692010-08-09 17:18:13 -0700105 <!-- This is the data type we operate on. -->
The Android Open Source Project52d4c302009-03-03 19:29:09 -0800106 <data android:mimeType="vnd.android.cursor.item/vnd.google.note" />
107 </intent-filter>
108 </activity>
Joe Malin70b18692010-08-09 17:18:13 -0700109
110 <activity android:name="NotesLiveFolder" android:label="@string/live_folder_name"
Roman Nurika7178802009-11-23 17:11:04 -0500111 android:icon="@drawable/live_folder_notes">
112 <intent-filter>
113 <action android:name="android.intent.action.CREATE_LIVE_FOLDER" />
114 <category android:name="android.intent.category.DEFAULT" />
115 </intent-filter>
116 </activity>
Joe Malin70b18692010-08-09 17:18:13 -0700117
The Android Open Source Project52d4c302009-03-03 19:29:09 -0800118 </application>
Joe Malin70b18692010-08-09 17:18:13 -0700119
The Android Open Source Project52d4c302009-03-03 19:29:09 -0800120</manifest>