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 searchContent(Context context, String content) {
        Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);
        intent.putExtra(SearchManager.QUERY, content);
        context.startActivity(intent);
    }
}