Here you can find the source of launchUrlInBrowser(Context context, String url)
public static void launchUrlInBrowser(Context context, String url)
//package com.java2s; //License from project: Open Source License import android.content.Intent; import android.net.Uri; import android.content.Context; public class Main { public static void launchUrlInBrowser(Context context, String url) { Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(url));//from w ww . j a v a 2 s .com context.startActivity(i); } }