Java tutorial
//package com.java2s; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.support.annotation.NonNull; public class Main { private static boolean startBrowserActivity(@NonNull Context context, @NonNull String url) { try { Intent it = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); context.startActivity(it); } catch (Exception e) { e.printStackTrace(); return false; } return true; } }