AndroidManifest.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  3. package="com.baidu.baidulocationdemo"
  4. android:versionCode="1"
  5. android:versionName="1.0" >
  6. <uses-sdk
  7. android:minSdkVersion="8"
  8. android:targetSdkVersion="15" />
  9. <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" >
  10. </uses-permission>
  11. <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" >
  12. </uses-permission>
  13. <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" >
  14. </uses-permission>
  15. <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" >
  16. </uses-permission>
  17. <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" >
  18. </uses-permission>
  19. <uses-permission android:name="android.permission.READ_PHONE_STATE" >
  20. </uses-permission>
  21. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" >
  22. </uses-permission>
  23. <uses-permission android:name="android.permission.INTERNET" />
  24. <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" >
  25. </uses-permission>
  26. <uses-permission android:name="android.permission.READ_LOGS" >
  27. </uses-permission>
  28. <uses-permission android:name="android.permission.VIBRATE" />
  29. <uses-permission android:name="android.permission.WAKE_LOCK" />
  30. <uses-permission android:name="android.permission.WRITE_SETTINGS" />
  31. <application
  32. android:name="com.baidu.baidulocationdemo.LocationApplication"
  33. android:allowBackup="true"
  34. android:icon="@drawable/ic_launcher"
  35. android:label="@string/app_name"
  36. android:theme="@android:style/Theme.Black"
  37. >
  38. <service
  39. android:name="com.baidu.location.f"
  40. android:enabled="true"
  41. android:process=":remote" >
  42. <intent-filter>
  43. <action android:name="com.baidu.location.service_v2.2" >
  44. </action>
  45. </intent-filter>
  46. </service>
  47. <!-- meta-data需要写在application中 -->
  48. <meta-data
  49. android:name="com.baidu.lbsapi.API_KEY"
  50. android:value="请输入AK" />
  51. <activity
  52. android:name="com.baidu.baidulocationdemo.MainActivity"
  53. android:label="@string/app_name" >
  54. <intent-filter>
  55. <action android:name="android.intent.action.MAIN" />
  56. <category android:name="android.intent.category.LAUNCHER" />
  57. </intent-filter>
  58. </activity>
  59. <activity android:name="com.baidu.baidulocationdemo.LocationActivity" >
  60. </activity>
  61. <activity android:name="com.baidu.baidulocationdemo.NotifyActivity"></activity>
  62. <activity android:name="com.baidu.baidulocationdemo.QuestActivity"></activity>
  63. </application>
  64. </manifest>