Interaction between webview and Titanium API

Introduction :
I have faced this as a very common requirement, where we need to display any html content to any specific portion of our app and we need to make a bridge which can talk with platform APIs.
So here again webview content can also make communication with Titanium native API’s. Here I have demonstrated a way to call native API functionality from webview contents.

Summary :
With above video, I have described the way to bind Titanium API’s with HTML events, which can talk to each other.


Presented By: Raju Mahato, Software Developer, Mindfire Solutions

Getting address from latitude/longitude value using Google API and PhoneGap

In this post we will discover the use of Google API to get the current address and type of address by using the PhoneGap geolocation API and Google API.

Sometimes we need to get the address of a location from geolocation value. It is very very easy to get the same using Google API and PhoneGap. First we need to get the geolocation value i.e latitude and longitude using PhoneGap geolocation API.

Here are the steps that we need to follow.

1. Include the Phonegap/Cordova JavaScript file and Google API JavaScript file inside your html page.

<script type="text/javascript" src="phonegap/cordova.js"></script>
<script type="text/javascript" src=";sensor=false"></script>

Continue reading

Video Tutorial to Append Section in a Table View with Alloy Using Titanium


Section is used to categorize rows into different category in a table view. Titanium provides ‘appendSection’ method to append section at bottom of any table. Here using the below video, I am going t describe the way to append section in a table view.

Summary :

Here I have described the way to append section at bottom of a table view. Using the above code block we can achieve the same.

Written ByRaju Mahato, Software Developer, Mindfire Solutions

Append Row in a Table View With Alloy Using Titanium


Titanium provides method associated table view which can be used to append row at the bottom of any table view. Here with the below video, I am going to describe you the way to append rows at the bottom of a table view.

From the above video we have learned the way to append row at the bottom of any table view with Alloy using Titanium.

Written ByRaju Mahato, Software Developer, Mindfire Solutions

Capturing And Storing Signature to Rhom In Rhomobile Application

Rhomobile has the ability to capture signature using the Signature API. Signature can be captured in two ways,
1. Full Screen Mode
2. Inline Mode
Note : From Rhodes 3.3.3 onwards, the inline mode has been moved on to RhoElement Vs 2 which is a paid version and requires a license to use it.

To use the Signature API, first, we need to add the camera capability in Build.yml,
capabilities:   Camera

Continue reading

Row Count with Titanium in CrossPlatform Application

We generally use table view API in titanium to display data in row manner but there might be a scenario where we need to take care about the number of rows. So here I will be describing different ways to count number of rows and sections present in table view.

Sometime we might get data from some external API or any other source that needs to be bind with a table where we are unaware about the number of rows that are present in the API response. So let’s create a situation for a table view where we will get the number of rows and section defined for those rows using Alloy with Titanium. Lets have a window where we will have a table view with some static rows.

So in order to do so lets, take a view called index.xml and its controller called index.js.

Continue reading

A Deep Look Into Camera API of Rhomobile

In this post, we will go through the available methods for Camera API in details using Rhodes. This post will just explain the methods and uses of the Camera API from ruby excluding the rho-element javascript API.

Camera Permission:
In order to use the device camera, we need to get the permission by defining the capabilities in build.yml file.

Continue reading