Sunday, November 11, 2012

Installisation issues with Appcelerator Titanium - Ubuntu 12.04

Appcelerator titanium is used to develop cross-platform mobile application on Android, iOs, Mobile web using the Javascript SDK.

Titanium converts the javascript calls to the native application call on the device.
For example if you write the code for label in the javascript you can able to compile the same code for Android, iOS, mobile web . In the Android the system call will be made as the dialog and so on and so forth,

To get started you need to have the appcelerator account, It is free of cost just visit the following link to create it.

Once you have created the account just login to the account in the link below

Appcelerator Titanium is available for  Windows, Linux, Mac. I have installed in Ubuntu (Linux- Debian Flavor).

Issue I

The error that i got is a dialog box which has "Launching Aptana Portal has encountered a problem"

In the details i got these "An internal error has occurred. No more handlesNative code library failed to load. (java.lang.UnsatisfiedLinkError: /home/users/ajaikumark/Downloads/Titanium_Studio (2)/plugins/com.aptana.swt.webkitbrowser.linux.x86_1.0.0.1334860664/os/linux/x86/ cannot open shared object file: No such file or directory)"

So here is the solution you need to install this following package.

Follow the following commands

Get the root access

sudo su
>Enter your root password

sudo apt-get install libjpeg62

If you have any issue update the repository list and try again

sudo apt-get update

sudo apt-get install libjpeg62

Issue II

You need sun Java to open the Titanium.

Installation of  sun-java6-jdk, sun-java6-jre, sun-java6-plugin on ubuntu 12.04 LTS 

  This repository is available for: Natty  Oneiric  Precise:

 To add ppa:

sudo apt-add-repository ppa:flexiondotorg/java

sudo apt-get update

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-jdk

 If you have any issues try the following commands

sudo apt-get install python-software-properties

Now try the above commands. 

Hope this post helped you .

Happy Hacking...

Friday, November 9, 2012

Getting Started with Selenium IDE - Installation

Selenium is the IDE to record,test and debug the web Scripts. It is the complete IDE which comes as the plugin to the browsers. It is easy to learn and implement for automating the testing.
To get started you need to install selenium into your web browser. It is very simple to install just visit the link below

Download the latest version under the Selenium IDE Block. The latest version is 1.9.0

I am using Ubuntu 12.04 32 bit Operating System , Actually operating system is not the concern .

I am using the default browser Firefox. In Firefox (Browser)  allow the  add on to install. Once the download has been completed you must need to restart the browser to complete the installation. Once you restart the browser you are ready to go.

In Firefox you can see this add on at

Tools - > Selenium IDE


Ctrl + Shift + S

Now the Selenium IDE will open as shown below

This is the good tool to make test automation. I will also post how to make automation in selenium in my future posts.

Happy Hacking ...

Thursday, November 8, 2012

How to take screenshot from Android Mobile/Tablet

Taking screen shot of the android mobile/tablet can be done in very few steps.

This is the steps that i follow to take screen shot of the mobile devices.

I am using ubuntu 12.04 connected with the iberry Tablet that is running android Ice Cream Sand wich.

First you need to connect the device using USB Data cable and turn on the USB Debugging mode in the device.

Launcher -> Settings -> Developer Options -> USB debugging (Check it)

Now open the terminal in the computer

Ctrl + Alt + T

Go to the location of the android sdk folder

In my case i have my android sdk folder at


Once you are inside the android sdk folder you can see the folder named tools
now get into the folder

cd tools

Now run the ddms file


Now select the device and click on

Device -> Screen Capture...


Ctrl + S

You will get the device screen on your desk

Click Save to take the shot

Refresh to get the updated screen

Click Rotate to rotate the screen image

Once you are done click on Done

Happy Hacking...

Thursday, November 1, 2012

DroidDraw Installisation -Run Jar File in Ubuntu

Droid draw is a open source tool to design GUI builder for android application you can use this in windows as well as Ubuntu and Mac OSX.

The code is available here.
 To install in linux you after getting a jar file just follow the instruction below

open the downloaded path and check for the jar file

ls -a

This will list all the file in the directory , just check for "droiddraw.jar"

Switch to root user
sudo su

Enter your password 

Now type the following command to run the jar file

java -jar droiddraw.jar
Happy Hacking...

Twitter Bird Gadget