nyduss
nyduss

Reputation: 87

phonegap android app icon wrong resolution

I've been working on an android phone app over the last couple of weeks using phonegap, and everything has been great.

Today, I rebuilt the app to test some requests to the server and I noticed that the app icon on my phone had shrunk, to a tiny size.

I've been version controlling my app so I tried rebuilding the app from some older versions, and the same thing, the app icon was still tiny.

The only thing I know for sure is that the app icon was not always this tiny, and just last week I had the icon the right size. I'm not sure what happened and why new builds of the application are not making the icon the right size.

Does anyone know if phonegap just had a recent update that would change the icon size or know what the problem might be..?

Here's what my config file looks like

<icon src="logo.png" />
<icon gap:density="ldpi" gap:platform="android" src="res/icon/android/icon-36-ldpi.png" />
<icon gap:density="mdpi" gap:platform="android" src="res/icon/android/icon-48-mdpi.png" />
<icon gap:density="hdpi" gap:platform="android" src="res/icon/android/icon-72-hdpi.png" />
<icon gap:density="xhdpi" gap:platform="android" src="res/icon/android/icon-96-xhdpi.png" /> 

Upvotes: 3

Views: 2036

Answers (1)

Scoup
Scoup

Reputation: 1323

Galaxy S4 is xxhdpi resolution. You need to add the xxhdpi resolution (144px).

Here the full list (px):

  • ldpi: 36 x 36.
  • mdpi: 48 x 48.
  • hdpi: 72 x 72.
  • xhdpi: 96 x 96.
  • xxhdpi: 144 x 144.

Upvotes: 4

Related Questions