show Sky fire Browser via Intent - Android Intent

Android examples for Intent:Browser Intent

Description

show Sky fire Browser via Intent

Demo Code


//package com.book2s;

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

import android.net.Uri;

public class Main {

    public static void showSkyfireBrowser(Context context, String visitUrl) {
        Intent intent = new Intent();
        intent.setClassName("com.skyfire.browser",
                "com.skyfire.browser.core.Main");
        intent.setAction(Intent.ACTION_VIEW);
        intent.addCategory(Intent.CATEGORY_DEFAULT);
        intent.setData(Uri.parse(visitUrl));
        context.startActivity(intent);//w  w w  .  j  ava 2 s . c  o  m
    }
}

Related Tutorials