在 iOS 上开发多年后,我现在开始进行 android 开发。现在我开始发布我的第一个应用程序。我在这样的手机上安装了调试签名的 APK 文件:
$ adb -s HT35HW917059 -d install app/app-***-debug.apk
我可以毫无问题地使用 adb 启动应用程序(应用程序启动):
$ adb -s HT35HW917059 shell am start -n ...
但是,我在手机上找不到要启动应用程序的应用程序图标?我错过了什么?
最佳答案
检查您的 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>
关于android - 手机上缺少 ADB 安装的应用程序的启动器图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29145243/