AndroidManifest.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  3. package="com.example.mynfcdemon"
  4. android:versionCode="1"
  5. android:versionName="1.0" >
  6. <uses-sdk
  7. android:minSdkVersion="14"
  8. android:targetSdkVersion="18" />
  9. <uses-permission android:name="android.permission.NFC" />
  10. <uses-feature android:name="android.hardware.nfc" android:required="true" />
  11. <application
  12. android:allowBackup="true"
  13. android:icon="@drawable/ic_launcher"
  14. android:label="@string/app_name"
  15. android:theme="@style/AppTheme" >
  16. <activity
  17. android:name="com.example.mynfcdemon.MainActivity"
  18. android:label="@string/app_name" >
  19. <intent-filter>
  20. <action android:name="android.intent.action.MAIN" />
  21. <category android:name="android.intent.category.LAUNCHER" />
  22. </intent-filter>
  23. </activity>
  24. <activity android:name="com.example.mynfcdemon.TagView"
  25. android:theme="@android:style/Theme.NoTitleBar">
  26. <intent-filter>
  27. <action android:name="android.nfc.action.TAG_DISCOVERED"/>
  28. <category android:name="android.intent.category.DEFAULT"/>
  29. </intent-filter>
  30. <intent-filter>
  31. <action android:name="android.nfc.action.NDEF_DISCOVERED"/>
  32. </intent-filter>
  33. <intent-filter>
  34. <action android:name="android.nfc.action.TECH_DISCOVERED"/>
  35. </intent-filter>
  36. <meta-data android:name="android.nfc.action.TECH_DISCOVERED"
  37. android:resource="@xml/nfc_tech_filter"/>
  38. </activity>
  39. </application>
  40. </manifest>
  41. <!--
  42. -->