phone 上缺少 ADB 安装的应用程序的启动器图标
Missing launcher icon of ADB-installed app on the phone
经过 iOS 多年的开发,我现在开始 android 开发。现在我开始发布我的第一个应用程序。我在 phone 上安装了我的调试签名 APK 文件,如下所示:
$ adb -s HT35HW917059 -d install app/app-***-debug.apk
我可以毫无问题地使用 adb 启动应用程序(应用程序启动):
$ adb -s HT35HW917059 shell am start -n ...
但是,我在 phone 上找不到要启动该应用程序的应用程序图标?我错过了什么?
检查你的 AndroidManifest.xml 你的 activity 有正确的 Intent filters
<activity android:name="MainActivity">
<!-- This activity is the main entry, should appear in app launcher -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
经过 iOS 多年的开发,我现在开始 android 开发。现在我开始发布我的第一个应用程序。我在 phone 上安装了我的调试签名 APK 文件,如下所示:
$ adb -s HT35HW917059 -d install app/app-***-debug.apk
我可以毫无问题地使用 adb 启动应用程序(应用程序启动):
$ adb -s HT35HW917059 shell am start -n ...
但是,我在 phone 上找不到要启动该应用程序的应用程序图标?我错过了什么?
检查你的 AndroidManifest.xml 你的 activity 有正确的 Intent filters
<activity android:name="MainActivity">
<!-- This activity is the main entry, should appear in app launcher -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>