Running the Application

Appportunity

Build your own Android App Dev Empire

Get Instant Access

To run the application in a simulator or on the device, you may simply run a rake task from your application directory. Rake is a simple Ruby build program with capabilities similar to make. See Table 6-3 for a list of commands. Note that running the application is not any harder on the device (and on some platforms it is faster than in the simulator), but you do need to set up cryptographic digital signatures (see platform chapters 2-5 for details).

Rhomobile also provides a desktop simulator for Rhodes that can be used on Windows platforms, which has a much faster startup time than the simulators and can be effective for quickly testing your application logic. To test your UI code, you need to run it on the simulator or device for the platforms you are targeting. The Windows simulator does not attempt to simulate the browser differences between the different smartphone platforms.

Table 6-3. Rake commands for building and running Rhodes applications

Command Purpose

Table 6-3. Rake commands for building and running Rhodes applications

Command Purpose

rake clean:android

Clean Android

rake clean:bb

Clean BlackBerry

rake clean:iphone

Clean iPhone

rake clean:win32

Clean Rhomobile Win32 Desktop Simulator

rake clean:wm

Clean Windows Mobile

rake device:android:debug

Build debug self-signed for Android device

rake device:android:production

Build production signed for Android device

rake device:bb:debug

Build debug for BlackBerry device

rake device:bb:production

Build production for BlackBerry device

rake device:iphone:production

Build production for iPhone device

rake device:wm:production

Build production for Windows Mobile device or emulator

rake run:android

Build and launch Android emulator

rake run:android:device

Build and install on Android device

rake uninstall:android

Uninstall application from Android emulator

rake uninstall:android:device

Uninstall application from Android device

rake run:bb

Builds app, loads, and starts BlackBerry Simulator and MDS

rake run:iphone

Builds app, launches iPhone simulator

rake run wm:emu

Build and run application on Windows Mobile 6 emulator

rake run wm:emucab

Build and install .cab on Windows Mobile 6 emulator

rake run wm:dev

Build and run application on Windows Mobile 6 device

rake run wm:devcab

Build and install .cab on Windows Mobile 6 device

Was this article helpful?

0 0
Living With Android

Living With Android

Get All The Support And Guidance You Need To Finally Be A Success At Using Android. This Book Is One Of The Most Valuable Resources In The World When It Comes To Playing With the Hottest Android Tablet.

Get My Free Ebook


Post a comment