对于Android在PhoneGap的应用程序图标应用程序、图标、Android、PhoneGap

2023-09-05 09:59:35 作者:人长得漂亮不如活的漂亮.

我有一个HTML5 / JavaScript的应用程序,我已经使用的PhoneGap的生成服务生成APK文件为我的机器人。

I have an HTML5/Javascript app, and I have used PhoneGap's build service to generate the APK file for my Android.

我成功地安装在我的Andr​​oid APK文件,一切都很好,除了在手机上的应用程序图标是默认的Andr​​oid图标。在PhoneGap的构建我上传了我的PNG文件到项目下的详细信息部分,我还以为图标应该被用来作为你的应用程序图标?我已经尝试了几种不同的大小。

I successfully installed the APK file on my Android and everything is fine, except that the app icon on the phone is the default Android icon. In PhoneGap Build I uploaded my PNG file to the project under the 'Details' section, and I thought that icon was supposed to be used as your app icon? I've tried several different sizes.

让我知道是否有我需要做别的事情。

Let me know if there is something else I need to be doing.

推荐答案

在电话峡以下应该包含

www_android \水库\值\ strings.xml中 - 包含的应用程序名   www_android \水库\绘制,华电国际 - 包含一个57x57像素图标   www_android \水库\绘制,华电国际 - 包含一个57x57像素图标   www_android \水库\绘制,华电国际 - 包含一个57x57像素的图标

www_android\res\values\strings.xml - contains the name of the app www_android\res\drawable-hdpi - contains a 57x57 pixel icon www_android\res\drawable-hdpi - contains a 57x57 pixel icon www_android\res\drawable-hdpi - contains a 57x57 pixel icon

来源(第12步)

或者

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="com.nitobi.johngarrett" version="1.0">
<name>John Garrett Drinking Game</name> 
<description>
If you're watching a Canucks game, you need play this.
</description> 
<author href="http://www.nitobi.com" email="support@nitobi.com">
Tim Kim, Ryan Betts, Fil Maj
</author> 
<icon src="img/beer_72.png" width="72" height="72" />
<icon src="img/beer_48.png" width="48" height="48" />
<icon src="img/beer_36.png" width="36" height="36" />
</widget>

Source