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