Java tutorial
//package com.java2s; //License from project: Apache License import android.content.Context; import android.content.Intent; import android.net.Uri; public class Main { /** * Creates an intent to open a link. * * @param url The url to be opened. * @param context The context needed to start the intent. */ public static void openLink(String url, Context context) { Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); context.startActivity(intent); } }