Advertisement
Guest User

AndroidManifest.xml

a guest
Nov 8th, 2024
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:versionCode="1"
  4. android:versionName="1.0"
  5. package="com.your.example">
  6.  
  7. <supports-screens
  8. android:anyDensity="true"
  9. android:largeScreens="true"
  10. android:normalScreens="true"
  11. android:smallScreens="true"
  12. android:xlargeScreens="true" />
  13.  
  14. <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
  15. <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
  16.  
  17. <application
  18. android:icon="@drawable/app_icon"
  19. android:label="@string/app_name"
  20. android:theme="@style/UnityTransparentStatusBarTheme">
  21.  
  22. <activity
  23. android:label="@string/app_name"
  24. android:name="com.unity3d.nostatusbar.UnityPlayerActivityStatusBar"
  25. android:fitsSystemWindows="true">
  26. <intent-filter>
  27. <action android:name="android.intent.action.MAIN" />
  28. <category android:name="android.intent.category.LAUNCHER" />
  29. <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
  30. </intent-filter>
  31. <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
  32. </activity>
  33.  
  34. <service
  35. android:name="com.your.example.LocationPlugin"
  36. android:enabled="true"
  37. android:exported="true"/>
  38.  
  39. <!-- Define ServiceMessageReceiver with the exported attribute -->
  40. <receiver
  41. android:name="com.your.example.ServiceMessageReceiver"
  42. android:exported="true">
  43. <intent-filter>
  44. <action android:name="com.your.example.MESSAGE" />
  45. </intent-filter>
  46. </receiver>
  47.  
  48. <!-- Define StatusCheckStarter with the exported attribute -->
  49. <receiver
  50. android:name="com.your.example.StatusCheckStarter"
  51. android:exported="true">
  52. <intent-filter>
  53. <action android:name="com.your.example.IntentToUnity" />
  54. </intent-filter>
  55. </receiver>
  56.  
  57. <!-- Define BootReceiver with the exported attribute -->
  58. <receiver
  59. android:name="com.your.example.BootReceiver"
  60. android:enabled="true"
  61. android:exported="true">
  62. <intent-filter>
  63. <action android:name="android.intent.action.BOOT_COMPLETED" />
  64. </intent-filter>
  65. </receiver>
  66. </application>
  67.  
  68. <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="23" />
  69. </manifest>
  70.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement