You are previewing Rhomobile Beginner's Guide.
O'Reilly logo
Rhomobile Beginner's Guide

Book Description

Step-by-step instructions to build an enterprise mobile web application from scratch

  • Explore all of Rhomobile's features and products through the creation of a mobile web application

  • Step-by-step instructions help you to build an enterprise mobile web application from scratch, through to deployment

  • Clear guides for developing applications on iPhone, Blackberry, and other smartphones

  • Learn how to use Rhomobile's four products: Rhodes, RhoSync, RhoHub, and RhoGallery

In Detail

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.

Create mobile applications for almost any smartphone quickly and with ease

Table of Contents

  1. Rhomobile Beginner's Guide
    1. Rhomobile Beginner's Guide
    2. Credits
    3. About the Author
    4. About the Reviewers
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    6. Preface
      1. What this book covers
      2. Who this book is for
      3. Conventions
      4. Reader feedback
      5. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    7. 1. What is Rhomobile?
      1. The Rhomobile family
        1. Rhodes
        2. RhoSync
        3. RhoHub
        4. RhoGallery
      2. Why Rhomobile is cutting edge
        1. Which products does Rhomobile support?
      3. Rhomobile architecture
        1. Rhodes application
        2. Rhosync application
        3. Backend application
      4. FAQ
      5. Summary
    8. 2. Installation and Configuration—How to Start off
      1. Rhomobile installations
      2. Installing Rhomobile
      3. Time for action Installing on Windows
      4. Time for action Installing on Linux
      5. Time for action Installing on a Mac
        1. What just happened?
      6. Device SDK installation
        1. Blackberry SDK installation
          1. Which Operating Systems are supported?
          2. Where to get it from:
      7. Time for action Installing Blackberry SDK
        1. Android SDK installation
          1. Which Operating Systems are supported?
          2. Where to get it from:
      8. Time for action Installing Android SDK
        1. iPhone SDK installation
          1. Which Operating Systems are supported?
          2. Where to get it from:
      9. Time for action Installing iPhone SDK
      10. Time for action Configuration
        1. What just happened?
      11. Time for action Installing Development Environments—IDE
        1. What just happened?
      12. Summary
    9. 3. Instant Gratification—Create Your First Application
      1. Let's get started…
      2. Time for action Creating an employee application
        1. What just happened?
        2. Have a go hero Exploring the Rhogen command
      3. Building your first Rhodes application
      4. Time for action Build it for different smart phones
        1. What just happened?
      5. Navigating the Directory Structure
        1. Time for action Creating the model
        2. What just happened?
      6. Linking views to the homepage
        1. Time for action Linking the employee view to the homepage
        2. Have a go hero Exploring url_for
        3. Digging the MVC in our application
          1. Model
          2. Controller
          3. Views
          4. Rhodes configuration file—Rhoconfig.txt
          5. Building a Configuration file—build.yml
        4. Changing the input style
        5. Time for action Editing view
          1. What just happened?
        6. Creation of a new page
          1. Time for action Creation of the new page
      7. Summary
    10. 4. Rhom—Playing with the Local Database
      1. What is ORM?
      2. Exploring Rhom
      3. Time for action Creating a company model
        1. What just happened?
      4. Association
      5. Time for ation Creating an association between employee and company
        1. What just happened?
      6. Exploring methods available for Rhom
      7. Time for action Filtering record by company and gender
        1. What just happened?
        2. Have a go hero find (*args) Advanced proposal
      8. How Rhodes stores data
        1. Property Bag
        2. Fixed Schema model
      9. Summary
    11. 5. RhoSync—Synchronizing Your Data
      1. Generating a RhoSync application
      2. Time for action Creating a RhoSync application
        1. What just happened?
        2. Have a go hero Disable the web interface
      3. RhoSync source adapters
      4. Time for action Creating source adapter
        1. What just happened?
      5. Configure the Rhodes application to connect to RhoSync
      6. Time for action Connecting the Rhodes application to RhoSync
        1. What just happened?
      7. Placing data in the Rhodes application from RhoSync
      8. Time for action Filling data from RhoSync
        1. What just happened?
      9. Connecting to Backend services
        1. What just happened?
      10. CRUD operation using RhoSync
        1. Create
        2. Update
        3. Delete
        4. What just happened?
      11. Filtering datasets with search
      12. Time for action Filtering data with search
      13. Authentication
        1. What just happened?
      14. RhoSync REST API
      15. Summary
    12. 6. Metadata and Push—Creating Agile Views
      1. Getting ready for Metadata
      2. Time for action Installing the Rhodes translator gem
        1. What just happened?
      3. Creating the first view using metadata
        1. Time for action Creating an index page
        2. What just happened?
        3. Have a go hero
      4. Getting all the views for company from Metadata
        1. Understanding the code
          1. Digging the code for the new page
            1. Digging the code for the show page
              1. Digging the code for the edit page
            2. Metadata validation
            3. Custom templates
            4. Push data to your phone
              1. Set up the Rhodes application for Push
                1. Push for iOS
                2. Push for Android
                3. Push for Blackberry
                  1. Setting up the MDS simulator
            5. Testing Push in the Web Console
      5. Summary
    13. 7. Native User Interface—Cosmetics for Your Smart Phones
      1. Device-specific style
      2. Time for action Adding device-specific style
        1. What Just happened
        2. Customizing layouts
      3. Dynamic loading of custom view files based on the current platform
      4. Standard smart phone CSS/HTML architecture
        1. pageTitle (<div id="pageTitle">)
        2. toolbar (<div id="toolbar">)
        3. Toolbar button styles
        4. Content (<div id="content">)
      5. Application menu
        1. Time for action Default menu
        2. What just happened?
      6. Controller action menu
        1. Time for action Creating an action menu
        2. What just happened?
      7. Native tab bar
      8. Time for action Creating tabs
        1. What just happened?
      9. BlackBerry CSS/HTML architecture
      10. Loading screen
      11. Time for action Setting the loading Image
        1. What just happened?
      12. Adding transition styles for iPhone/Android
      13. Time for action Adding transaction animation
        1. What just happened?
        2. Pop Quiz
      14. Summary
    14. 8. Unit Testing and Logging—Writing Better Code
      1. Unit testing
      2. Time for action Getting ready for testing the Rhodes application
        1. What just happened?
      3. Writing your first Rhodes unit test
      4. Time for action Writing the first test
        1. What just happened?
      5. Testing the RhoSync application
      6. Time for a Action Running the default test
        1. Pop Quiz Spec
        2. What just happened?
      7. Creating the first unit test for the RhoSync application
      8. Time for action Creating a unit test for the source adapter
        1. Query
        2. Create
        3. Update
        4. Delete
        5. What just happened?
        6. Have a go hero Creating a test for the company model
      9. Logging
      10. Time for action Configure logs for the Rhodes application
        1. What just happened?
      11. Where to find logs:
        1. iPhone
        2. Android
        3. Blackberry
        4. Pop quiz- Logging
        5. See the device log on the device
      12. RhoError class
      13. Summary
    15. 9. RhoHub—Deploying to Cloud
      1. Installation and configuration
      2. Time for action Installation and configuration
        1. What just happened?
      3. Understanding basic Git
      4. Creating a RhoHub project
      5. Time for action Creating a RhoHub project
        1. What Just Happened?
        2. Pop Quiz
      6. Cloning and committing your Rhodes application
      7. Time for action Pushing Rhodes application
        1. What Just Happened?
        2. Have a go hero Commit the code
      8. Deploying the RhoSync application
      9. Time for action Pushing the RhoSync application
        1. What just happened?
      10. RhoHub online editor
      11. Creating builds for different phones from RhoHub
      12. Time for action Three steps to build the Rhodes code
        1. What Just Happened?
      13. Deploying the RhoSync application to RhoHub
      14. Time for action Three steps to deploy RhoSync
        1. What Just Happened?
      15. RhoGallery
      16. Time for action Creating a gallery
        1. What just happened?
      17. Summary
    16. 10. Rhodes power unleashed
      1. System class
      2. Time for action Using the System class
        1. What just happened?
      3. Doing more things with System class
        1. Exit application
        2. Enable\disable phone sleep
        3. Managing other applications
      4. Time for action Starting other applications
        1. What just happened?
      5. PIM contacts
        1. Create
        2. Read
        3. Update
        4. Destroy
      6. Time for action CRUD operations on contacts
        1. What just happened?
        2. Have a go hero CRUD operations for Calendar/Events
        3. Camera
          1. Taking a picture
          2. Choosing a picture from an album
        4. Time for action Capturing images
          1. What just happened ?
        5. Geolocation
          1. GeoLocation Ruby class
        6. Time for action Adding Geolocation
        7. What just happened?
        8. Alerts
        9. Time for action Creating alerts
          1. What Just happend?
        10. Other device capabilities
          1. Barcode
          2. Ringtone manager
          3. Bluetooth
            1. BluetoothManager
            2. BluetoothSession
        11. Timer
      7. Summary