Book Image

Rhomobile Beginner's Guide

By : Abhishek Nalwaya
Book Image

Rhomobile Beginner's Guide

By: Abhishek Nalwaya

Overview of this book

The four Rhomobile products – Rhodes, Rhosync, RhoHub, and Rhogallery – provide a complete toolkit for creating a mobile application. Rhomobile is cross-platform and so allows you to build your application for many different types of smartphone – including iPhone and Blackberry – just with a single codebase. This makes it the most preferred and quickest way of developing mobile apps. As you create a native Rhomobile application, you can use the built-in device features such as GPS, Push, and Camera, all with offline capabilities.Rhomobile Beginner's Guide is filled with practical examples to help you to create a mobile application from scratch. You can choose on which operating system to build, as well as for which smartphone to develop your application, giving you the freedom to create a customized mobile application quickly and easily.Once you have learned how to install Rhomobile on Windows, Mac, or Linux, you will create a simple application, which will be used to explore the products of Rhomobile one by one. Things really get going when you write unit test cases for your application before deploying it to the server and making builds for your chosen Smartphone. You will learn about the different aspects of Rhomobile, starting with Rhodes 3, which helps you to build a native mobile application. Rhosync 2.1 carries out the offline device capabilities and RhoHub deploys the code on the server and creates a build for the different smartphones. Rhomobile Beginner's Guide gives you the freedom to create a mobile web application on the platform of your choice, for the smartphone of your choice.
Table of Contents (17 chapters)
Rhomobile Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Pop quiz- Logging


1. If we have two JDE installs for Blackberry then where will the Rholog.txt file be stored?

a. In both the JDE folders

b. In the JDE that is configured in rhobuild.yml

2. If you see that only warning is logged in your log file, what can be the reason for this?

a. MinSeverity in rhoconfig.txt is set to 0

b. MinSeverity in rhoconfig.txt is set to 1

c. MinSeverity in rhoconfig.txt is set to 3

d. Some issues with the simulator

See the device log on the device

Now we know where the log files are located when you are running the application on simulator. But what if we are running on the device?

To show the application logs on the device we can use the following method available with Rhodes:

Rho::RhoConfig.show_log

You may also send the log to the log server URL, defined in rhoconfig.txt:

Rho::RhoConfig.send_log = "some URL"

The URL format will be:

<logserver>/client_log?client_id=<client_id>&device_pin=<device_pin>&log_name=<logname>