AndroidManifest.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  3. package="com.libs.zxing"
  4. android:installLocation="auto"
  5. android:versionCode="1"
  6. android:versionName="1.0" >
  7. <uses-permission android:name="android.permission.CAMERA" />
  8. <uses-permission android:name="android.permission.INTERNET" />
  9. <uses-permission android:name="android.permission.VIBRATE" />
  10. <uses-permission android:name="android.permission.FLASHLIGHT" />
  11. <uses-permission android:name="android.permission.READ_CONTACTS" />
  12. <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS" />
  13. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  14. <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
  15. <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
  16. <!-- Don't require camera, as this requires a rear camera. This allows it to work on the Nexus 7 -->
  17. <uses-feature
  18. android:name="android.hardware.camera"
  19. android:required="false" />
  20. <uses-feature
  21. android:name="android.hardware.camera.front"
  22. android:required="false" />
  23. <uses-feature
  24. android:name="android.hardware.camera.autofocus"
  25. android:required="false" />
  26. <uses-feature
  27. android:name="android.hardware.camera.flash"
  28. android:required="false" />
  29. <uses-feature android:name="android.hardware.screen.landscape" />
  30. <uses-feature
  31. android:name="android.hardware.wifi"
  32. android:required="false" />
  33. <uses-feature
  34. android:name="android.hardware.touchscreen"
  35. android:required="false" />
  36. <!-- Donut-specific flags which allow us to run on any dpi screens. -->
  37. <supports-screens
  38. android:anyDensity="true"
  39. android:largeScreens="true"
  40. android:normalScreens="true"
  41. android:smallScreens="true"
  42. android:xlargeScreens="true" />
  43. <uses-sdk
  44. android:minSdkVersion="9"
  45. android:targetSdkVersion="17" />
  46. <application
  47. android:allowBackup="true"
  48. android:icon="@drawable/logo"
  49. android:label="@string/app_name"
  50. android:theme="@style/AppTheme" >
  51. <activity
  52. android:name="com.libs.zxing.CaptureActivity"
  53. android:clearTaskOnLaunch="true"
  54. android:configChanges="orientation|keyboardHidden"
  55. android:screenOrientation="portrait"
  56. android:stateNotNeeded="true"
  57. android:theme="@android:style/Theme.NoTitleBar"
  58. android:windowSoftInputMode="stateAlwaysHidden" >
  59. <intent-filter>
  60. <action android:name="android.intent.action.MAIN" />
  61. <category android:name="android.intent.category.LAUNCHER" />
  62. </intent-filter>
  63. <intent-filter>
  64. <action android:name="com.google.zxing.client.android.SCAN" />
  65. <category android:name="android.intent.category.DEFAULT" />
  66. </intent-filter>
  67. <!-- Allow web apps to launch Barcode Scanner by linking to http://zxing.appspot.com/scan. -->
  68. <intent-filter>
  69. <action android:name="android.intent.action.VIEW" />
  70. <category android:name="android.intent.category.DEFAULT" />
  71. <category android:name="android.intent.category.BROWSABLE" />
  72. <data
  73. android:host="zxing.appspot.com"
  74. android:path="/scan"
  75. android:scheme="http" />
  76. </intent-filter>
  77. <!-- We also support a Google Product Search URL. -->
  78. <intent-filter>
  79. <action android:name="android.intent.action.VIEW" />
  80. <category android:name="android.intent.category.DEFAULT" />
  81. <category android:name="android.intent.category.BROWSABLE" />
  82. <data
  83. android:host="www.google.com"
  84. android:path="/m/products/scan"
  85. android:scheme="http" />
  86. </intent-filter>
  87. <!-- And the UK version. -->
  88. <intent-filter>
  89. <action android:name="android.intent.action.VIEW" />
  90. <category android:name="android.intent.category.DEFAULT" />
  91. <category android:name="android.intent.category.BROWSABLE" />
  92. <data
  93. android:host="www.google.co.uk"
  94. android:path="/m/products/scan"
  95. android:scheme="http" />
  96. </intent-filter>
  97. <!-- Support zxing://scan/?... like iPhone app -->
  98. <intent-filter>
  99. <action android:name="android.intent.action.VIEW" />
  100. <category android:name="android.intent.category.DEFAULT" />
  101. <category android:name="android.intent.category.BROWSABLE" />
  102. <data
  103. android:host="scan"
  104. android:path="/"
  105. android:scheme="zxing" />
  106. </intent-filter>
  107. </activity>
  108. <activity android:name="me.yoqi.qrcode.ResultActivity"/>
  109. </application>
  110. </manifest>