Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.app.SearchManager;

import android.content.Context;
import android.content.Intent;

public class Main {
    public static void searchWeb(Context context, String word) {
        Intent i = new Intent(Intent.ACTION_WEB_SEARCH);
        i.putExtra(SearchManager.QUERY, word);
        context.startActivity(i);
    }
}