打包出Android Project ,找到AndroidManifest文件
文件位置
将其中的intent-filter 替换为如下
这是原来的:
2019.7.12更新
@废文鉴定师
不管是unity应用还是直接的安卓应用,加上这几行就代表这是一个桌面启动器应用,安装在模拟器(安卓9.0)上没有问题,提示选择主屏幕应用,安装在我的华为设备(畅享9e)上则无法识别这是个主屏幕应用。·
图为安卓模拟器效果
在我的小米k20pro上也没有问题。
k20pro.png
而华为就不一样了,他NB啊
华为畅享9e.jpg
完整Androidmanife.xml
package="com.winprg.testa">
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">