Site Loader
Auckland, New Zealand
In this post we will start our discussion to create hybrid application in Android to test using Robotium. Here is the complete code for the Hybrid Application which we are about to create.
package com.example.executeautomationapp;

import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class EAActivity extends Activity {

	protected void onCreate(Bundle savedInstanceState) {
		WebView mainView = (WebView) findViewById(;
		WebSettings settings = mainView.getSettings();
		mainView.setWebViewClient(new MyCustomView());
		//Set the URL of our app
	private class MyCustomView extends WebViewClient {
		public boolean shouldOverrideURL(WebView view, String url)
			return true;


Here is the complete video of the above discussion Thanks for reading the post and watching the video !!! Please leave your comments and let me know if there is anything I should update in this post. Thanks, Karthik KK

Post Author: Karthik kk

2 Replies to “Developing Hybrid Application for Robotium automation”

Leave a Reply

Your email address will not be published. Required fields are marked *