Difference between revisions of "Mobicloud tutorial"

From Knoesis wiki
Jump to: navigation, search
(Hello World Tutorial)
(Installing the Android Application In a Device)
 
(20 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
This tutorial covers the creation of a '''Hello world''' application. This application has
 
This tutorial covers the creation of a '''Hello world''' application. This application has
 
# A minimal model with only one attribute.
 
# A minimal model with only one attribute.
# A minimal controller with only one action.
+
# A minimal controller with two actions.
# A minimal view demonstrating a simple user interface.
+
# Two minimal views demonstrating a simple user interface.
  
{{#ev:youtube|V4XICliXMq|400|left|Basic MobiCloud Tutorial : Creating a Hello World Application}}
+
{{#ev:youtube|V4XICliXMqA|400|left|Basic MobiCloud Tutorial : Creating a Hello World Application}}
  
 
=== What does the 'Hello World' do ? ===
 
=== What does the 'Hello World' do ? ===
 
Similar to other ''hello worlds'', this one does nothing fancy, except illustrate the use of the language and the major components of the generated code. This hello world has
 
Similar to other ''hello worlds'', this one does nothing fancy, except illustrate the use of the language and the major components of the generated code. This hello world has
 
# A mobile UI with a textbox and a button to fetch a greeting
 
# A mobile UI with a textbox and a button to fetch a greeting
# A back-end application with a database that stores a set of greetings [In this case only 1]
+
# A back-end application with a database that stores a set of greetings.
  
The action would be just pressing the button, which fetches the greeting and displays it on the mobile device. This process requires
+
The actions are adding a greeting and displaying the stored set of greetings.
 +
 
 +
The create process requires
 +
# Getting the users greeting through a mobile UI component.
 +
# Encoding the values in XML and sending it to the server.
 +
# Decoding the values in the server and constructing the appropriate date object.
 +
# storing the greeting data object in the database.
 +
 
 +
 
 +
The retrieve process requires
 
# passing the request to the server to fetch the greeting
 
# passing the request to the server to fetch the greeting
 
# fetching the greeting from the database
 
# fetching the greeting from the database
Line 18: Line 27:
 
# decoding the values in the mobile side and displaying it in the UI
 
# decoding the values in the mobile side and displaying it in the UI
  
 +
<br>
 +
<br>
 +
 +
== Automated deployment with Google App Engine ==
 
{{#ev:youtube|bM9SydjMbzw|400|left|Basic MobiCloud Tutorial : Automated deployment of the Google App Engine Application}}
 
{{#ev:youtube|bM9SydjMbzw|400|left|Basic MobiCloud Tutorial : Automated deployment of the Google App Engine Application}}
 +
 +
The email that you receive has all the details about the applications compilation and deployment process. You can also download the source code and also visit the debug Web interface of your Application.
 +
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
 +
== Installing the Android Application In a Device ==
 +
{{#ev:youtube|rq9qhTerRb8|400|left|Basic MobiCloud Tutorial : Running the Generated Application on a Device}}
 +
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
 +
== Installing the Android Application In an Emulator ==
 +
{{#ev:youtube|40H6fu3rXQY|400|left|Basic MobiCloud Tutorial : Running the Generated Application on an Emulator}}
 +
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
 +
== Customizing the Google App Engine Application with Eclipse ==
 +
{{#ev:youtube|Z8ABWJE9gCM|400|left|Basic MobiCloud Tutorial : Mounting in the Generated code and customizing it in Eclipse}}

Latest revision as of 22:03, 6 October 2011

Hello World Tutorial

This tutorial covers the creation of a Hello world application. This application has

  1. A minimal model with only one attribute.
  2. A minimal controller with two actions.
  3. Two minimal views demonstrating a simple user interface.
Basic MobiCloud Tutorial : Creating a Hello World Application

What does the 'Hello World' do ?

Similar to other hello worlds, this one does nothing fancy, except illustrate the use of the language and the major components of the generated code. This hello world has

  1. A mobile UI with a textbox and a button to fetch a greeting
  2. A back-end application with a database that stores a set of greetings.

The actions are adding a greeting and displaying the stored set of greetings.

The create process requires

  1. Getting the users greeting through a mobile UI component.
  2. Encoding the values in XML and sending it to the server.
  3. Decoding the values in the server and constructing the appropriate date object.
  4. storing the greeting data object in the database.


The retrieve process requires

  1. passing the request to the server to fetch the greeting
  2. fetching the greeting from the database
  3. encoding the values in XML and sending it to the mobile device
  4. decoding the values in the mobile side and displaying it in the UI



Automated deployment with Google App Engine

Basic MobiCloud Tutorial : Automated deployment of the Google App Engine Application

The email that you receive has all the details about the applications compilation and deployment process. You can also download the source code and also visit the debug Web interface of your Application.





















Installing the Android Application In a Device

Basic MobiCloud Tutorial : Running the Generated Application on a Device






















Installing the Android Application In an Emulator

Basic MobiCloud Tutorial : Running the Generated Application on an Emulator






















Customizing the Google App Engine Application with Eclipse

Basic MobiCloud Tutorial : Mounting in the Generated code and customizing it in Eclipse