Skip to content

Instantly share code, notes, and snippets.

@mochico
mochico / Util.startActivityWithBrowserCheck
Created December 14, 2012 02:00
Android4.0以降、標準ブラウザを無効に設定できるようになったため、使用できるブラウザがないと落ちるので事前にチェック。
import java.util.List;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.net.Uri;
public class Util {