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
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:
Use rake command “rake build:iphone:setup_xcode_project” for setup XCode project for current application (include loading images, icons, etc.)