mirror of
https://github.com/cocos/cocos-engine.git
synced 2026-09-08 00:29:28 +08:00
* No need to use task detect code anymore, singleTask property can fit it. * Export game activity, so that the game can be opened outside. It also force required in Android Api 31 (Android 13)
42 lines
1.7 KiB
XML
42 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.cocos.helloworld"
|
|
android:installLocation="auto">
|
|
|
|
<uses-permission android:name="android.permission.INTERNET"/>
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
|
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
|
|
|
|
<application
|
|
android:allowBackup="true"
|
|
android:label="@string/app_name"
|
|
android:usesCleartextTraffic="true"
|
|
android:icon="@mipmap/ic_launcher">
|
|
|
|
<!-- Tell CocosNativeActivity the name of our .so -->
|
|
<meta-data android:name="android.app.lib_name"
|
|
android:value="cocos" />
|
|
|
|
<activity
|
|
android:name="com.cocos.game.AppActivity"
|
|
android:screenOrientation="landscape"
|
|
android:configChanges="orientation|keyboardHidden|screenSize|screenLayout"
|
|
android:label="@string/app_name"
|
|
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
|
android:launchMode="singleTask"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
<activity
|
|
android:name="com.cocos.lib.CocosEditBoxActivity"
|
|
android:configChanges="orientation|keyboardHidden|screenSize|screenLayout"
|
|
android:screenOrientation="behind"
|
|
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
|
|
</application>
|
|
|
|
</manifest>
|