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

Preface

The Rhomobile Beginner's guide will speak to every developer's mind, and especially to the technocrats looking for a reliable cross-platform framework encouraging them to explore and try out these wonderful products by Rhomobile. This book guides you step by step to build an enterprise mobile application from scratch, through to deployment.

What this book covers

Chapter 1, What is Rhomobile?: In this chapter, we will briefly discuss the various products of Rhomobile and their architecture.

Chapter 2, Installation and Configuration—How to Set Off: In this chapter, we will learn to install the necessary softwares that are required before developing our mobile application using Rhomobile.

Chapter 3, Instant Gratification—Create Your First Application: In this chapter, we will create our first application and understand how Rhodes structures the application.

Chapter 4, Rhom—Playing with the Local Database: In this chapter, we'll explore Rhom, which is an Object-Relational Mapping (ORM) provided by Rhodes and take a look at how it manipulates data in our application. We'll find how ORM manages table relationships in this chapter and also dig into the ORM object life cycle.

Chapter 5, RhoSync—Synchronizing your data: In this chapter, we will learn about the synchronization framework RhoSync that keeps application data current and available on user's smart phones. We will create a sample RhoSync application and connect with a Rails application to put the current data on the device.

Chapter 6, Metadata and Push—Creating Agile Views: In this chapter, we will learn about a powerful feature of RhoSync called metadata and also configuring Push messages to the client. We will enhance the application created in the earlier chapter with metadata and Push.

Chapter 7, Native User Interface—Cosmetics for Your Smart Phones: In this chapter, we will learn about Native User Interface for different phones. We will perform device-specific operations to give a more native look to our application.

Chapter 8, Unit Testing and Logging—Writing Better Code: In this chapter, we will learn about testing and logging. We will write unit tests for both Rhodes and RhoSync applications. We will also learn to check logs in different devices.

Chapter 9, RhoHub—Deploying to Cloud: In this chapter, we will host our RhoSync application to RhoHub using Git and learn to create build for our Rhodes application.

Chapter 10, Rhodes Power Unleashed: In this chapter, we will learn about the Rhodes competence to access device-specific capabilities such as GPS, PIM, camera, System attributes, and many more functionalities.

Who this book is for

This book is for developers who are looking to build mobile applications. They may include the ones who are looking for a deep understanding of Rhomobile or they may be completely new to these products.

Familiarity with HTML, CSS, and Ruby will give you an extra edge but you do not need to be an expert on these topics.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "The update_attributes call then takes the rest of the parameters from the request and applies them to this record."

A block of code is set as follows:

<div class="toolbar">
   <% if SyncEngine::logged_in > 0 %>
      <div class="leftItem blueButton">
         <a href="<%= url_for :controller => :Settings, :action => :

When we wish to draw your attention to a particular part of a code block, the relevant lines or items will be shown in bold:

<div class="rightItem regularButton">
<a class="flip" href="<%= url_for :controller => :Settings, :action => :logout %>">Logout</a>
</div

Any command-line input or output is written as follows:

sudo apt-get install ruby1.9.1-full

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "run the executable file and click Next".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or e-mail .

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.