In the build.yml in your application folder there is an entry “name”. This is the display name that the user will see on the device. Example:
name: My Own App
Place your image to use as an icon into the folder called icon
in your application. If you created an app called testapp
then the folder would be testapp/icon
.
icon.png
and icon.ico
.iOS 4.0: Apple require three icons for application: 57x57, 72x72 and 114x114 pixels. Prepare such files, name them as icon57.png
, icon72.png
and icon114.png
and place into icon
folder
testapp/ build.yml Rakefile rhoconfig.txt app/ public/ icon/ icon.png icon.ico
Apple has released a lot of devices with varying sizes and you must account for this in building your app by using the following files for their respective devices.
In XCode, these files will be converted to the following file names. also just add the files into the XCode project.
If you choose to manually add the files into your XCode project, you’ll need to also edit your info.plist as such:
<key>UILaunchImages</key> <array> <dict> <key>UILaunchImageMinimumOSVersion</key> <string>8.0</string> <key>UILaunchImageName</key> <string>Default-568h</string> <key>UILaunchImageOrientation</key> <string>Portrait</string> <key>UILaunchImageSize</key> <string>{320, 568}</string> </dict> <dict> <key>UILaunchImageMinimumOSVersion</key> <string>8.0</string> <key>UILaunchImageName</key> <string>Default-667h</string> <key>UILaunchImageOrientation</key> <string>Portrait</string> <key>UILaunchImageSize</key> <string>{375, 667}</string> </dict> <dict> <key>UILaunchImageMinimumOSVersion</key> <string>8.0</string> <key>UILaunchImageName</key> <string>Default-736h</string> <key>UILaunchImageOrientation</key> <string>Portrait</string> <key>UILaunchImageSize</key> <string>{414, 736}</string> </dict> </array>
You can change the icon for your Android application by replacing icon.png, which is in your application icon folder, with a new icon.png.
Windows Mobile Shell program caches program icons. This cache is cleared only when the device or the simulator is restarted. If you change the icon of your application, you have to restart the device or simulator: uninstall/install is not enough.
Rhodes supports the display of a custom “Loading” screen while your application is launching. This screen’s source is the file loading.html, located at
Alternatively, you can replace loading.html with an image named loading.png if you just want a simple image to be displayed.
You can control how image presented by modifying splash_screen options in rhoconfig.txt:
Examples:
Place the splash screen in the center and show it for 5 seconds: :::ruby splash_screen=‘delay=5;center’
Center the splash screen horizontally, scale it vertically to file all available space, and show it for 5 seconds: :::ruby splash_screen=‘delay=5;hcenter;vzoom’
You can customize you loading image (showed on start of application) for each platform by platform suffix:
loading.android.png
loading.iPhone.png
loading.wm.png
If application doesn’t have platform specific loading.png
, then Rhodes will try to load default loading.png
.
For iPhone you may define a set of loading images. See Apple documentation about these images, section Application Launch Images in Build-Time Configuration Details.
If you are building for iPhone using rake commands, place loading.png
to your applications “app” folder. If you created an app called testapp
then the folder would be testapp/app
. Also you can add some additional images for so loading screen look better on different devices:
If you are using xCode to build for iPhone, you should add to your project Default.png image. You can also add some additional images for better work on different devices:
Note: Use rake command “rake build:iphone:setup_xcode_project” to setup the XCode project for changes in the current application (include loading images, icons, etc.)