Splash screen and Icon

I want to have just one icon for the app regardless of display resolution. The icon file is “Icon.png”, 512x512 and is located in the project directory where are all files (like “main.lua”). I build the project and put the apk in my android phone. But the file has the general corona icon, not mine. I install and the game is there with the wrong icon. What is hapening?

My files are:

– config.lua
application =
{
    content =
    {
        width = 480,
        height = 854,
        scale = “letterbox”, – zoom to fill screen, possibly cropping edges
        xAlign = “center”,
        yAlign = “center”
    },
}

– build.settings

settings =
{
    orientation =
    {
        default = “landscapeRight”,

    },
}
 

I use free version of corona. Is this the reason?

Other think: how to use a spash screen? And it can be used in corona free?

Please read this guide (part of the Corona documentation), which lists all of the icon files you need to include to work on all devices: http://docs.coronalabs.com/guide/distribution/buildSettings/index.html#appicons.

  • Andrew

You just need to add the missing other icon files as he says.

I did that (The correct icon names and sizes in the project folder) and don’t work.

I read that custom splash screen are not avaiable in corona free. Maybe custom icons are not avaiable too…

Do you confirm?

Hi @galiksoft,

Remember that you must also specify the icon names in your build settings, in addition to placing the correct files inside the core project folder. The entire process is outlined in the link that was provided:

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html#appicons

For your other question, there are no Corona-branded “splash screens” in Corona Starter. You can build your own splash screen if you want, and we don’t restrict that process in any way.

Best regards,

Brent Sorrentino

I must specify the icon names in build.settings for android?

In that link, it seems like this process is only for ios…

How to specify for android?

Forget!

I did a mistake :ph34r:

I copied the icon file names (with extension .png) to existing png files correctly sized and because Windows does not show the extensions the real file name was (for example) Icon-hdpi.png.png

Easy…

Icon … ok

splash screen … is not shown in the real device, but in Simulator it is shown.

The name and size are correct. So, what’s wrong now?

Did you specify it as “Default.png”, with that case? A capital “D”, not lowercase? As a note, splash screens done in this manner (file added to the base directory) is not really a “feature” of Android. However, we provide a basic functionality of it on Android for easier cross-platform development. The exception is that you MUST include the “tall” launch image if you intend to offer your app on iOS. This is a requirement of Apple to make the screen adjust properly to the iPhone5 screen. Details on how to name (and size) that file are in the same link I provided earlier.

Take care,

Brent

Please read this guide (part of the Corona documentation), which lists all of the icon files you need to include to work on all devices: http://docs.coronalabs.com/guide/distribution/buildSettings/index.html#appicons.

  • Andrew

You just need to add the missing other icon files as he says.

I did that (The correct icon names and sizes in the project folder) and don’t work.

I read that custom splash screen are not avaiable in corona free. Maybe custom icons are not avaiable too…

Do you confirm?

Hi @galiksoft,

Remember that you must also specify the icon names in your build settings, in addition to placing the correct files inside the core project folder. The entire process is outlined in the link that was provided:

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html#appicons

For your other question, there are no Corona-branded “splash screens” in Corona Starter. You can build your own splash screen if you want, and we don’t restrict that process in any way.

Best regards,

Brent Sorrentino

I must specify the icon names in build.settings for android?

In that link, it seems like this process is only for ios…

How to specify for android?

Forget!

I did a mistake :ph34r:

I copied the icon file names (with extension .png) to existing png files correctly sized and because Windows does not show the extensions the real file name was (for example) Icon-hdpi.png.png

Easy…

Icon … ok

splash screen … is not shown in the real device, but in Simulator it is shown.

The name and size are correct. So, what’s wrong now?

Did you specify it as “Default.png”, with that case? A capital “D”, not lowercase? As a note, splash screens done in this manner (file added to the base directory) is not really a “feature” of Android. However, we provide a basic functionality of it on Android for easier cross-platform development. The exception is that you MUST include the “tall” launch image if you intend to offer your app on iOS. This is a requirement of Apple to make the screen adjust properly to the iPhone5 screen. Details on how to name (and size) that file are in the same link I provided earlier.

Take care,

Brent