Home | History | Annotate | Download | only in Tag
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2010 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
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     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 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     18     package="com.android.apps.tag"
     19     android:versionCode="101"
     20     android:versionName="1.1"
     21 >
     22 
     23     <uses-permission android:name="android.permission.CALL_PHONE" />
     24     <uses-permission android:name="android.permission.NFC" />
     25     <uses-permission android:name="android.permission.READ_CONTACTS"/>
     26     <uses-permission android:name="android.permission.WAKE_LOCK" />
     27     <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
     28 
     29     <uses-feature android:name="android.hardware.nfc" required="true" />
     30 
     31     <application
     32         android:icon="@drawable/ic_launcher_nfc"
     33         android:label="@string/app_name"
     34     >
     35         <activity android:name="TagViewer"
     36             android:label="@string/title_scanned_tag"
     37             android:launchMode="singleTop"
     38             android:priority="-10"
     39         >
     40             <!-- Offer to display anything with NDEF data -->
     41             <intent-filter>
     42                 <action android:name="android.nfc.action.TECH_DISCOVERED"/>
     43             </intent-filter>
     44 
     45             <meta-data android:name="android.nfc.action.TECH_DISCOVERED"
     46                 android:resource="@xml/filter_nfc"
     47             />
     48 
     49             <intent-filter>
     50                 <action android:name="android.intent.action.VIEW"/>
     51                 <data android:mimeType="vnd.android.cursor.item/ndef_msg"/>
     52                 <category android:name="android.intent.category.DEFAULT"/>
     53             </intent-filter>
     54         </activity>
     55     </application>
     56 </manifest>
     57