/** * This will load an Activity hosting a webview to the provided URL * ensure you declare me in your manifest * <code><activity android:name="com.novoda.notils.widget.webview.ExternalUrlWebViewActivity" /></code> * * @param context Any context * @param url A valid url to navigate to */ public static void toUrl(Context context, String url) { toUrl(context, url, android.R.string.untitled); }
/** * This will load an Activity hosting a webview to the provided URL * ensure you declare me in your manifest * <code><activity android:name="com.novoda.notils.widget.webview.ExternalUrlWebViewActivity" /></code> * * @param context Any context * @param url A valid url to navigate to * @param titleResId A String resource to display as the title */ public static void toUrl(Context context, String url, int titleResId) { toUrl(context, url, context.getString(titleResId)); }