Static method to create intents
Judging by this bit:


if (getIntent().hasExtra(FILE)) {
    webview.loadUrl(getIntent().getStringExtra(FILE));
} else {
    webview.loadUrl(getIntent().getStringExtra(URL));
}



It looks like the loadUrl method doesn't care whether the parameter you pass to it is a file path out a web address. Actually the term "url" has a general meaning that can encompass both file paths and web addresses. So I don't see the point of distinguishing these two in the intents: just use "URL", it doesn't matter if it's a path out web address. Again, this suggestion is based on the posted code.

If you really want to have two separate static method for some reason, then extract the common logic in these methods to a helper method.

private static Intent createIntent(Context context, int titleId, String key, String url) {
    Intent intent = new Intent(context, WebViewActivity.class);
    intent.putExtra(TITLE_ID, titleId);
    intent.putExtra(key, url);
    return intent;
}

public static Intent createURLIntent(Context context, int titleId, String url) {
    return createIntent(context, titleId, URL, url);
}

public static Intent createFileIntent(Context context, int titleId, String path {
    return createIntent(context, titleId, FILE, path);
}