如何在 Ubuntu 中为 Android Studio Emulator 创建应用程序启动器桌面图标?

How to creating an application launcher Desktop icon for Android Studio Emulator in Ubuntu?

我想知道是否可以使用特定版本的 Android 设备为 Emulator(Android Studio) 创建应用程序启动器图标,并且OS 喜欢 Nexus_4_API_27Ubuntu 16.04.

如果你知道请帮助我。提前致谢。

有可能,是的。您可以从命令行使用某些命令打开模拟器,您可以创建一个脚本,该脚本将自动 运行 这些命令,然后 link 它到您的桌面。

要在桌面上创建一个带有快捷方式的可执行脚本:https://askubuntu.com/questions/299052/how-to-execute-sh-script-from-a-desktop-shortcut

并且在脚本中您需要设置打开模拟器的命令,您可以在此处找到: https://developer.android.com/studio/run/emulator-commandline.html

我现在没有 ubuntu 机器,所以我无法为您提供更多帮助,但您应该无法从这里开始。

转到 Android Studio 应用程序菜单栏。转到 工具 ,然后单击 桌面条目 ,它将添加到您的应用程序菜单中。

希望以上解决方案能正常工作。
这是为 Ubuntu 应用程序创建桌面图标的另一种通用方法。

我们以robo-
为例 运行 遵循来自终端的命令
sudo nano /usr/share/applications/robo.desktop
并粘贴代码

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Robo
Icon=/opt/robo-{robo-version}/bin/robo.png
# Ex- /usr/local/bin/robo3t/robo3t-1.4.3-linux-x86_64-48f7dfd/bin
Exec="/opt/robo-{robo-version}/bin/robo"
# Ex- /usr/local/bin/robo3t/robo3t-1.4.3-linux-x86_64-48f7dfd/bin/robo3t
Comment=Robomongo desktop entry
Categories=Development;
Terminal=false
StartupNotify=true

Note- Icon should be the icon.png path which we want to display and Exec must be the exact executable file path.

现在,我们可以通过搜索 robo.
在应用程序启动器菜单中找到该图标 同样,我们可以为 Ubuntu.

中的任何应用程序创建桌面图标