package com.idogfooding.backbone.browser;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

/**
 * BrowserUtils
 *
 * @author Charles
 */
public class BrowserUtils {

    public static void openUri(Context context, String uri) {
        Intent intent = new Intent();
        intent.setAction("android.intent.action.VIEW");
        intent.setData(Uri.parse(uri));
        context.startActivity(intent);
    }
}

@@ -124,16 +124,63 @@
 t.Uri;%0A%0A
+import com.idogfooding.backbone.utils.StrKit;%0A%0A
 /**%0A * B
@@ -486,11 +486,706 @@
 );%0A    %7D
+%0A%0A    public static boolean isVideoUrl(String uri) %7B%0A        return StrKit.notEmpty(uri) && (uri.toLowerCase().endsWith(%22.mp4%22)%0A                %7C%7C uri.toLowerCase().startsWith(%22.avi%22)%0A                %7C%7C uri.toLowerCase().startsWith(%22.avi%22)%0A                %7C%7C uri.toLowerCase().startsWith(%22.avi%22)%0A                %7C%7C uri.toLowerCase().startsWith(%22.avi%22)%0A                %7C%7C uri.toLowerCase().startsWith(%22.avi%22)%0A                %7C%7C uri.toLowerCase().startsWith(%22.avi%22)%0A                %7C%7C uri.toLowerCase().startsWith(%22.avi%22)%0A                %7C%7C uri.toLowerCase().startsWith(%22.avi%22)%0A                %7C%7C uri.toLowerCase().startsWith(%22.avi%22)%0A                %7C%7C uri.toLowerCase().startsWith(%22.avi%22));%0A    %7D
 %0A%7D%0A

add video support